Skip to content

Commit

Permalink
[GHA] enable nightly runs (#60)
Browse files Browse the repository at this point in the history
* [GHA] enable nightly runs

Signed-off-by: NilashishC <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update test.yml

---------

Signed-off-by: NilashishC <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
NilashishC and pre-commit-ci[bot] authored May 8, 2023
1 parent 58af585 commit a55ac73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
name: Test collection

concurrency:
group: ${{ github.head_ref }}
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
ansible-lint:
uses: ansible-network/github_actions/.github/workflows/ansible-lint.yml@main
changelog:
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
if: github.event_name != 'schedule'
sanity:
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
unit-galaxy:
Expand All @@ -26,7 +29,7 @@ jobs:
git+https://github.com/ansible-collections/ansible.utils.git
git+https://github.com/ansible-collections/ansible.netcommon.git
all_green:
if: ${{ always() }}
if: ${{ always() && (github.event_name != 'schedule') }}
needs:
- ansible-lint
- changelog
Expand Down
3 changes: 3 additions & 0 deletions changelogs/fragments/add_gha_periodic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- Enable nightly GHA runs.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ readme: README.md
description: Ansible Collection for Free Range Routing (FRR).
repository: https://github.com/ansible-collections/frr.frr
issues: https://github.com/ansible-collections/frr.frr/issues
version: "2.0.2"
version: "2.0.3-dev"

0 comments on commit a55ac73

Please sign in to comment.