Skip to content

Commit

Permalink
Corrected GHA publish condition (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Sep 23, 2024
1 parent 42a7e9c commit 08c4888
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ jobs:
- run: pip install ansible-core

- name: Publish the collection on Galaxy
if: github.ref_type == 'tag' || github.ref == 'refs/heads/main'
if: |
github.event_name == 'push' &&
(github.ref_type == 'tag' || github.ref == 'refs/heads/main')
run: >
[[ "${{ secrets.ANSIBLE_GALAXY_API_KEY != '' }}" ]] || { echo
"ANSIBLE_GALAXY_API_KEY is required to publish on galaxy" ; exit 1; }
Expand Down

0 comments on commit 08c4888

Please sign in to comment.