mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
Merge pull request #3832 from balena-io/ab77/operational
Only run finalize on Linux runners
This commit is contained in:
commit
8af376e608
3
.github/actions/finalize/action.yml
vendored
3
.github/actions/finalize/action.yml
vendored
@ -14,6 +14,7 @@ runs:
|
|||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Get release version
|
- name: Get release version
|
||||||
|
if: runner.os == 'Linux'
|
||||||
id: get_release
|
id: get_release
|
||||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||||
run: |
|
run: |
|
||||||
@ -24,6 +25,7 @@ runs:
|
|||||||
echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Rename release
|
- name: Rename release
|
||||||
|
if: runner.os == 'Linux'
|
||||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||||
run: |
|
run: |
|
||||||
set -ea
|
set -ea
|
||||||
@ -38,6 +40,7 @@ runs:
|
|||||||
GITHUB_TOKEN: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}
|
GITHUB_TOKEN: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}
|
||||||
|
|
||||||
- name: Finalize GitHub release
|
- name: Finalize GitHub release
|
||||||
|
if: runner.os == 'Linux'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: v${{ steps.get_release.outputs.version }}
|
name: v${{ steps.get_release.outputs.version }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user