Skip to content

Commit b836916

Browse files
committed
Replace set-output with echo to $GITHUB_OUTPUT
The set-output method is deprecated in favor of echoing to $GITHUB_OUTPUT for security reasons.
1 parent d4e0539 commit b836916

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Create Release
22

3-
on:
3+
on:
44
workflow_dispatch:
55

66
jobs:
@@ -17,7 +17,7 @@ jobs:
1717
version=`cat version.txt`.$commits
1818
last_release_tag=`git describe --tags --match "v*.*.*" --abbrev=0`
1919
git log --pretty=format:"- %s" $last_release_tag..HEAD >release_notes.txt
20-
echo "::set-output name=version::${version}"
20+
echo "version=${version}" >> $GITHUB_OUTPUT
2121
shell: bash
2222
- name: Create Release
2323
uses: actions/create-release@v1

.github/workflows/upload-to-github-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if [[ "$RUNNER_OS" == "Linux" ]]; then bash ./bootstrap-linux.bash ; fi
2121
if [[ "$RUNNER_OS" == "macOS" ]]; then bash ./bootstrap-macos.bash ; fi
2222
if [[ "$RUNNER_OS" == "Windows" ]]; then ./bootstrap-windows.bat ; fi
23-
bootstrap/bin/forge variant=release
23+
bootstrap/bin/forge variant=release
2424
release/bin/forge variant=shipping prefix=shipping/forge install
2525
shell: bash
2626
- name: Test
@@ -34,7 +34,7 @@ jobs:
3434
pushd shipping
3535
tar -zcvf ${ARCHIVE} forge/bin/* forge/lua/**
3636
popd
37-
echo "::set-output name=filename::${ARCHIVE}"
37+
echo "filename=${ARCHIVE}" >> $GITHUB_OUTPUT
3838
shell: bash
3939
- name: Upload
4040
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)