diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e77967b34..aae5ce9a0 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,7 +30,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 diff --git a/changelogs/fragments/add_periodic_jobs_gha.yml b/changelogs/fragments/add_periodic_jobs_gha.yml new file mode 100644 index 000000000..7e645566c --- /dev/null +++ b/changelogs/fragments/add_periodic_jobs_gha.yml @@ -0,0 +1,3 @@ +--- +trivial: + - Enable period test job run via Github Actions.