From 6e21b6c6cd7c6aac073938dc5ad4c01b420d0b9e Mon Sep 17 00:00:00 2001 From: Alejandro Escontrela Date: Mon, 13 Jan 2025 15:32:09 -0800 Subject: [PATCH] upd --- .github/workflows/deploy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ed1b85a5eb9e..4e7fbf4733f7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,13 +40,13 @@ jobs: run: | 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 "SRC_BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV - echo "NO_PUSH=--no-push" >> $GITHUB_ENV - elif [[ ${GITHUB_REF} == refs/heads/* ]]; then # branch, e.g. master, source etc - echo "SRC_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV + 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" + elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc + echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}" fi - echo "DEPLOY_BRANCH=gh-pages" >> $GITHUB_ENV + echo "::set-output name=DEPLOY_BRANCH::gh-pages" - name: Deploy website run: yes | bash bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }} --src ${{ steps.setup.outputs.SRC_BRANCH }}