Skip to content

Commit d7377c4

Browse files
alerezaaafolguinch
authored andcommitted
New update to GH Actions: Deprecating save-state and set-output commands (alshedivat#986)
Hi there First of all, thanks for this amazing complete theme Due to this warning which has been recently showed by Github, `::set-output` will be deprecated and must be replaced with a new method ![image](https://user-images.githubusercontent.com/86428901/201933020-4a53d735-08b4-41d3-b38c-e16942fdd64e.png) topic: [GitHub Actions: Deprecating save-state and set-output commands](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) Thanks
1 parent 8740b81 commit d7377c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
git config --global user.name "GitHub Action"
3131
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3232
if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request
33-
echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}"
34-
echo "::set-output name=NO_PUSH::--no-push"
33+
echo "SRC_BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
34+
echo "NO_PUSH=--no-push" >> $GITHUB_OUTPUT
3535
elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc
36-
echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}"
36+
echo "SRC_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
3737
fi
38-
echo "::set-output name=DEPLOY_BRANCH::gh-pages"
38+
echo "DEPLOY_BRANCH=gh-pages" >> $GITHUB_OUTPUT
3939
- name: Deploy website
4040
run: yes | bash bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }}
4141
--src ${{ steps.setup.outputs.SRC_BRANCH }}

0 commit comments

Comments
 (0)