Skip to content

Commit

Permalink
Only perform the action on a new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sscheib committed Mar 17, 2024
1 parent ab11d4e commit c7a2d65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ansible-galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ jobs:
steps:
- name: 'checkout'
uses: 'actions/checkout@v4'
if: "startsWith(github.ref, 'refs/tags/')"

- name: 'galaxy'
uses: 'robertdebock/[email protected]'
if: "startsWith(github.ref, 'refs/tags/')"
with:
galaxy_api_key: '${{ secrets.galaxy_api_key }}'
git_branch: 'main'

- name: 'Create a new release on GitHub'
uses: 'softprops/action-gh-release@v2'
if: "startsWith(github.ref, 'refs/tags/')"
with:
draft: false
prerelease: false
Expand Down

0 comments on commit c7a2d65

Please sign in to comment.