Skip to content

Commit 38fda96

Browse files
committed
use env due to set-output is deprecated
1 parent 0fc1a4b commit 38fda96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Parse Event
2727
id: event
2828
run: |
29-
echo "::set-output name=tag::$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)"
29+
echo "tag=$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)" >> $GITHUB_ENV
3030
- name: Build and pack
3131
id: build
3232
run: |
@@ -39,12 +39,12 @@ jobs:
3939
4040
# pack
4141
cd .workflow
42-
plutil -replace version -string "${{ steps.event.outputs.tag }}" info.plist
43-
zip -r ../"DevToys-${{ steps.event.outputs.tag }}.alfredworkflow" .
42+
plutil -replace version -string "${{ env.tag }}" info.plist
43+
zip -r ../"DevToys-${{ env.tag }}.alfredworkflow" .
4444
cd ..
4545
46-
echo "::set-output name=artifact::$(echo "DevToys-${{ steps.event.outputs.tag }}.alfredworkflow")"
46+
echo "artifact=$(echo "DevToys-${{ env.tag }}.alfredworkflow")" >> $GITHUB_ENV
4747
- uses: shogo82148/actions-upload-release-asset@v1
4848
with:
4949
upload_url: ${{ github.event.release.upload_url }}
50-
asset_path: "${{ steps.build.outputs.artifact }}"
50+
asset_path: "${{ env.artifact }}"

0 commit comments

Comments
 (0)