Skip to content

Commit

Permalink
chore: fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Oct 11, 2024
1 parent 3421ee0 commit b7ee0bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ jobs:
semantic-release:
runs-on: ubuntu-latest
outputs:
release-version: ${{ inputs.version == '' && steps.semantic.outputs.new_release_version || ( 'v' + inputs.version) }}
release-version: ${{ env.VERSION || steps.semantic.outputs.new_release_version }}
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set branch variable for semantic release
run: |
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
if [[ "${{ inputs.version }}" != "" ]]; then
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
elif [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
if [[ "${{ inputs.channel }}" == "stable" ]]; then
BRANCHES="['master']"
elif [[ "${{ inputs.channel }}" == "rc" ]]; then
Expand Down

0 comments on commit b7ee0bf

Please sign in to comment.