Skip to content

Commit

Permalink
do not run release job on pr
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gamezftw committed Jul 17, 2024
1 parent 628f902 commit 47e6c34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 * *'

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47e6c34

Please sign in to comment.