Skip to content

Commit

Permalink
fix: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Jan 10, 2023
1 parent 7316e90 commit 1e037db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release_please.outputs.release_created }}
tag_name: ${{ steps.release_please.outputs.tag_name }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -47,10 +48,9 @@ jobs:
- uses: actions/checkout@v3
- name: Set version in galaxy.yml
run: |
sed -re 's/^version:.*$/version: ${version}/' -i galaxy.yml
with:
version: ${{ needs.release-please.outputs.tag_name }}
version=${{ needs.release-please.outputs.tag_name }}
sed -re "s/^version:.*$/version: ${version:1}/" -i galaxy.yml
- name: Upload collection to Ansible Galaxy
uses: ansible/[email protected]
with:
api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}

0 comments on commit 1e037db

Please sign in to comment.