diff options
author | Nilashish Chakraborty <nilashishchakraborty8@gmail.com> | 2023-05-04 13:03:17 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 13:03:17 +0530 |
commit | f1213dece775d30f6653182bfecee1a47d1e6504 (patch) | |
tree | 6c6ed9dbb7bbba68bcf8aa303ab5652a937e3cfe | |
parent | 65eaf174d90485c566d71ec9b49365cb5bc494ba (diff) | |
download | vyos-ansible-collection-f1213dece775d30f6653182bfecee1a47d1e6504.tar.gz vyos-ansible-collection-f1213dece775d30f6653182bfecee1a47d1e6504.zip |
[GHA] enable nightly runs (#321)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
-rw-r--r-- | .github/workflows/tests.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7fcdf27..aae5ce9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,19 +2,23 @@ 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: @@ -26,8 +30,9 @@ 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 - sanity - unit-galaxy @@ -36,6 +41,7 @@ jobs: steps: - run: >- python -c "assert set([ + '${{ needs.ansible-lint.result }}', '${{ needs.changelog.result }}', '${{ needs.sanity.result }}', '${{ needs.unit-galaxy.result }}', |