From e2966c4114441674b9947f0ea84d2ad371d231fd Mon Sep 17 00:00:00 2001 From: Alireza Dehghanzadeh <86428901+adehghanzadeh@users.noreply.github.com> Date: Tue, 15 Nov 2022 17:30:22 +0330 Subject: [PATCH] New update to GH Actions: Deprecating `save-state` and `set-output` commands (#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 --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f6455fd..0301f08 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,12 +30,12 @@ jobs: git config --global user.name "GitHub Action" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request - echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}" - echo "::set-output name=NO_PUSH::--no-push" + echo "SRC_BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT + echo "NO_PUSH=--no-push" >> $GITHUB_OUTPUT elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc - echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}" + echo "SRC_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT fi - echo "::set-output name=DEPLOY_BRANCH::gh-pages" + echo "DEPLOY_BRANCH=gh-pages" >> $GITHUB_OUTPUT - name: Deploy website run: yes | bash bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }} --src ${{ steps.setup.outputs.SRC_BRANCH }}