mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Merge pull request #3836 from balena-io/ab77/operational
Avoid duplicate releases
This commit is contained in:
commit
ae91958c06
17
.github/actions/finalize/action.yml
vendored
17
.github/actions/finalize/action.yml
vendored
@ -24,7 +24,7 @@ runs:
|
||||
|
||||
echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Rename release
|
||||
- name: Finalize release
|
||||
if: runner.os == 'Linux'
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
run: |
|
||||
@ -34,18 +34,9 @@ runs:
|
||||
|
||||
gh release edit '${{ github.event.pull_request.head.ref }}' \
|
||||
--title 'v${{ steps.get_release.outputs.version }}' \
|
||||
--tag 'v${{ steps.get_release.outputs.version }}'
|
||||
--tag 'v${{ steps.get_release.outputs.version }}' \
|
||||
--prerelease=false \
|
||||
--draft=false
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}
|
||||
|
||||
- name: Finalize GitHub release
|
||||
if: runner.os == 'Linux'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: v${{ steps.get_release.outputs.version }}
|
||||
tag_name: v${{ steps.get_release.outputs.version }}
|
||||
draft: false
|
||||
generate_release_notes: true
|
||||
prerelease: false
|
||||
token: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}
|
||||
|
2
.github/actions/publish/action.yml
vendored
2
.github/actions/publish/action.yml
vendored
@ -220,7 +220,7 @@ runs:
|
||||
name: ${{ github.event.pull_request.head.ref }}
|
||||
tag_name: ${{ github.event.pull_request.head.ref }}
|
||||
draft: true
|
||||
generate_release_notes: false
|
||||
generate_release_notes: true
|
||||
prerelease: true
|
||||
token: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}
|
||||
files: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user