Skip to content

Commit 66d55dd

Browse files
committed
fix: use semantic version
1 parent daab948 commit 66d55dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-ansible-collection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Configure semantic-release
3636
run: |
37-
echo '{"preset":"conventionalcommits","plugins":[["@semantic-release/commit-analyzer"],["@semantic-release/release-notes-generator"],["@semantic-release/github"],["@semantic-release/exec",{"publishCmd":"sed -i s/NEXT_VERSION/${nextRelease.version}/ galaxy.yml && ansible-galaxy collection build && ansible-galaxy collection publish --api-key ${{ secrets.ANSIBLE_GALAXY_API_TOKEN }} $(echo ${{ github.repository }} | cut -d/ -f1)-$(echo ${{ github.repository }} | cut -d/ -f2 | cut -d- -f3)-${nextRelease.version}.tar.gz"}]]}' > .releaserc.json
37+
echo '{"preset":"conventionalcommits","plugins":[["@semantic-release/commit-analyzer"],["@semantic-release/release-notes-generator"],["@semantic-release/github"],["@semantic-release/exec",{"publishCmd":"sed -i s/0.0.0/${nextRelease.version}/ galaxy.yml && ansible-galaxy collection build && ansible-galaxy collection publish --api-key ${{ secrets.ANSIBLE_GALAXY_API_TOKEN }} $(echo ${{ github.repository }} | cut -d/ -f1)-$(echo ${{ github.repository }} | cut -d/ -f2 | cut -d- -f3)-${nextRelease.version}.tar.gz"}]]}' > .releaserc.json
3838
3939
- name: Run semantic-release
4040
env:

0 commit comments

Comments
 (0)