Skip to content

Commit

Permalink
ci: create release only if new version is set
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed Nov 13, 2023
1 parent 9a4781c commit 2ae8397
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,20 @@ jobs:
@semantic-release/[email protected]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Do something when a new release published
env:
NEXT_RELEASE_VERSION: v${{ steps.semantic.outputs.new_release_version }}
run: |
echo $NEXT_RELEASE_VERSION
- name: FETCH THE SOURCE ARCHIVE
if: steps.semantic.outputs.new_release_published == 'true'
run: |
curl \
-L \
-o rules_pact-v1.1.9.tar.gz \
https://github.com/opicaud/rules_pact/archive/refs/tags/v1.1.9.tar.gz
- name: CREATE RELEASE
if: steps.semantic.outputs.new_release_published == 'true'
id: create-release
uses: ncipollo/[email protected]
with:
Expand Down

0 comments on commit 2ae8397

Please sign in to comment.