Skip to content

Commit

Permalink
fix: release versioning (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
davenewza authored Feb 5, 2024
1 parent 4ee6f4f commit 130e94a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,15 @@ jobs:
then
echo "Set channel to 'latest' for main branch"
echo "CHANNEL=latest" >> $GITHUB_ENV
elif ${{ github.event_name == 'push' }}
then
else
echo "Set channel to '${{ env.BRANCH }}'"
echo "CHANNEL=${{ env.BRANCH }}" >> $GITHUB_ENV
else
echo "Unhandled trigger"
fi
semantic-release:
needs: instantiate
runs-on: ubuntu-latest
if: ${{ needs.instantiate.outputs.branch != '' && needs.instantiate.outputs.channel != '' }}
outputs:
new_version: ${{ steps.semantic.outputs.new_release_version }}
steps:
Expand Down Expand Up @@ -88,6 +86,7 @@ jobs:
needs:
- semantic-release
runs-on: ubuntu-latest
if: ${{ needs.semantic-release.outputs.new_version != '' }}
steps:
- name: With version
shell: bash
Expand Down Expand Up @@ -117,6 +116,7 @@ jobs:
- semantic-release
- instantiate
runs-on: ubuntu-latest
if: ${{ needs.semantic-release.outputs.new_version != '' && needs.instantiate.outputs.branch != '' && needs.instantiate.outputs.channel != '' }}
strategy:
matrix:
package:
Expand Down

0 comments on commit 130e94a

Please sign in to comment.