From 47e6c3466fa42eb12a324e531764fc4595f3a79c Mon Sep 17 00:00:00 2001 From: gamezftw Date: Wed, 17 Jul 2024 20:33:14 +0200 Subject: [PATCH] do not run `release` job on pr add conditional to `release` job to not run on pull_request fix `tags-ignore` syntax do not trigger pr workflow on changes to `README.md` add `test-archlinux` to needs on `release` job --- .github/workflows/molecule.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index d931c7d..26bbf2d 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -4,13 +4,15 @@ name: Ansible Molecule on: # yamllint disable-line rule:truthy push: - tags_ignore: + tags-ignore: - '*' paths-ignore: - 'README.md' pull_request: branches: - main + paths-ignore: + - 'README.md' schedule: - cron: '15 8 8 * *' @@ -96,8 +98,10 @@ jobs: with: scenario: ${{ matrix.scenario }} release: + if: github.ref == 'refs/heads/main' needs: - test + - test-archlinux runs-on: ubuntu-latest steps: - name: Release to ansible galaxy