Skip to content

Commit

Permalink
ci: Fix release version
Browse files Browse the repository at this point in the history
Ensures that all release operations happen on the same SHA (i.e. in case main
changes while the run is in progress).
  • Loading branch information
olix0r committed Mar 28, 2024
1 parent ba26685 commit 0bd52aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
package: ${{ github.event_name == 'workflow_dispatch' || steps.changed.outputs.any_changed == 'true' }}
profile: ${{ inputs.profile || 'release' }}
publish: ${{ inputs.publish }}
ref: ${{ inputs.ref || github.ref }}
ref: ${{ inputs.ref || github.sha }}
tag: "${{ inputs.tag-prefix || 'release/' }}v${{ steps.meta.outputs.version }}"
prerelease: ${{ inputs.prerelease }}
draft: ${{ inputs.draft }}
Expand Down Expand Up @@ -191,13 +191,13 @@ jobs:
- if: needs.meta.outputs.publish == 'true'
uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564
with:
name: v${{ env.VERSION }}
name: ${{ env.VERSION }}
tag_name: ${{ env.TAG }}
files: artifacts/**/*
generate_release_notes: true
prerelease: ${{ needs.meta.outputs.prerelease }}
draft: ${{ needs.meta.outputs.draft }}
- if: needs.meta.outputs.publish == 'true'
- if: needs.meta.outputs.publish == 'true' && needs.meta.outputs.prerelease == 'false' && needs.meta.outputs.draft == 'false'
name: Trigger sync-proxy in linkerd2
run: gh workflow run sync-proxy.yml -f version="$VERSION"
env:
Expand Down

0 comments on commit 0bd52aa

Please sign in to comment.