This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/master by this push: new b5a937f fix: use pull request refs b5a937f is described below commit b5a937f94de558780a75bdb26a82b541ea623133 Author: Zoran Regvart <zregv...@apache.org> AuthorDate: Mon Dec 28 13:38:01 2020 +0100 fix: use pull request refs --- .github/workflows/pr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 0fcf8a7..7b534af 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -58,7 +58,7 @@ jobs: path: public - name: Preview on Netlify run: | - DEPLOY_URL=$(yarn preview:netlify --alias="${GITHUB_SHA}" --message="Preview for ${GITHUB_SHA}" --json 2> /dev/null |jq -r .deploy_url) + DEPLOY_URL=$(yarn preview:netlify --alias="${GITHUB_HEAD_REF}" --message="Preview for ${GITHUB_HEAD_REF}" --json 2> /dev/null |jq -r .deploy_url) echo "DEPLOY_URL=${DEPLOY_URL}" >> $GITHUB_ENV env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} @@ -71,7 +71,7 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: `🚀 Preview for ${process.env.GITHUB_SHA} is available at ${process.env.DEPLOY_URL}` + body: `🚀 Preview for ${context.payload.pull_request.head.sha} is available at ${process.env.DEPLOY_URL}` }) checks: needs: build