Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit81bb70d

Browse files
committed
update example for github action set-output deprecated issue
1 parentff998a6 commit81bb70d

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

‎_examples/cliItems/.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
-name:Parse Event
2424
id:event
2525
run:|
26-
echo "::set-output name=tag::$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)"
26+
echo "tag=$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)" >> $GITHUB_ENV
2727
-name:Build and pack
2828
id:build
2929
run:|
@@ -36,11 +36,12 @@ jobs:
3636
3737
# pack
3838
cd .workflow
39-
zip -r ../"AkTest-${{ steps.event.outputs.tag }}.alfredworkflow" .
39+
plutil -replace version -string "${{ env.tag }}" info.plist
40+
zip -r ../"AkTest-${{ env.tag }}.alfredworkflow" .
4041
cd ..
4142
42-
echo "::set-output name=artifact::$(echo "AkTest-${{steps.event.outputs.tag }}.alfredworkflow")"
43+
echo "artifact=$(echo "AkTest-${{env.tag }}.alfredworkflow")" >> $GITHUB_ENV
4344
-uses:shogo82148/actions-upload-release-asset@v1
4445
with:
4546
upload_url:${{ github.event.release.upload_url }}
46-
asset_path:"${{steps.build.outputs.artifact }}"
47+
asset_path:"${{env.artifact }}"

‎_examples/items/.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
-name:Parse Event
2424
id:event
2525
run:|
26-
echo "::set-output name=tag::$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)"
26+
echo "tag=$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)" >> $GITHUB_ENV
2727
-name:Build and pack
2828
id:build
2929
run:|
@@ -36,11 +36,12 @@ jobs:
3636
3737
# pack
3838
cd .workflow
39-
zip -r ../"AkTest-${{ steps.event.outputs.tag }}.alfredworkflow" .
39+
plutil -replace version -string "${{ env.tag }}" info.plist
40+
zip -r ../"AkTest-${{ env.tag }}.alfredworkflow" .
4041
cd ..
4142
42-
echo "::set-output name=artifact::$(echo "AkTest-${{steps.event.outputs.tag }}.alfredworkflow")"
43+
echo "artifact=$(echo "AkTest-${{env.tag }}.alfredworkflow")" >> $GITHUB_ENV
4344
-uses:shogo82148/actions-upload-release-asset@v1
4445
with:
4546
upload_url:${{ github.event.release.upload_url }}
46-
asset_path:"${{steps.build.outputs.artifact }}"
47+
asset_path:"${{env.artifact }}"

‎_examples/varsArgs/.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
-name:Parse Event
2424
id:event
2525
run:|
26-
echo "::set-output name=tag::$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)"
26+
echo "tag=$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)" >> $GITHUB_ENV
2727
-name:Build and pack
2828
id:build
2929
run:|
@@ -36,11 +36,12 @@ jobs:
3636
3737
# pack
3838
cd .workflow
39-
zip -r ../"AkTest-${{ steps.event.outputs.tag }}.alfredworkflow" .
39+
plutil -replace version -string "${{ env.tag }}" info.plist
40+
zip -r ../"AkTest-${{ env.tag }}.alfredworkflow" .
4041
cd ..
4142
42-
echo "::set-output name=artifact::$(echo "AkTest-${{steps.event.outputs.tag }}.alfredworkflow")"
43+
echo "artifact=$(echo "AkTest-${{env.tag }}.alfredworkflow")" >> $GITHUB_ENV
4344
-uses:shogo82148/actions-upload-release-asset@v1
4445
with:
4546
upload_url:${{ github.event.release.upload_url }}
46-
asset_path:"${{steps.build.outputs.artifact }}"
47+
asset_path:"${{env.artifact }}"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp