Skip to content

Commit ed8a82a

Browse files
committed
fix: use $GITHUB_OUTPUT to set step parameters
- set-output is deprecated
1 parent c9f3bce commit ed8a82a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
CHANGELOG="${CHANGELOG//'%'/'%25'}"
7373
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
7474
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
75-
echo "::set-output name=version::$VERSION"
76-
echo "::set-output name=name::$NAME"
77-
echo "::set-output name=changelog::$CHANGELOG"
75+
echo "version=$VERSION" >> $GITHUB_OUTPUT
76+
echo "name=$NAME" >> $GITHUB_OUTPUT
77+
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
7878
7979
# Run plugin build
8080
- name: Run Build
@@ -88,7 +88,8 @@ jobs:
8888
cd ${{ github.workspace }}/build/distributions
8989
FILENAME=`ls *.zip`
9090
unzip "$FILENAME" -d content
91-
echo "::set-output name=filename::${FILENAME:0:-4}"
91+
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
92+
9293
# Store already-built plugin as an artifact for downloading
9394
- name: Upload artifact
9495
uses: actions/upload-artifact@v4

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
4242
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
4343
44-
echo "::set-output name=changelog::$CHANGELOG"
44+
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
4545
4646
# Update Unreleased section with the current release note
4747
- name: Patch Changelog

0 commit comments

Comments
 (0)