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 d4ffffb fix: pull request number/url via environment vars
d4ffffb is described below
commit d4ffffbb0f7097b982d734da13c87017562955ed
Author: Zoran Regvart <[email protected]>
AuthorDate: Mon Dec 28 15:56:52 2020 +0100
fix: pull request number/url via environment vars
---
.github/workflows/pr.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml
index 8de892f..b186186 100644
--- a/.github/workflows/pr.yaml
+++ b/.github/workflows/pr.yaml
@@ -58,11 +58,13 @@ jobs:
path: public
- name: Preview on Netlify
run: |
- DEPLOY_URL=$(yarn preview:netlify --alias="pr-$(jq
\"${GITHUB_EVENT_PATH}\" .pull_request.number)" --message="Preview for $(jq
\"${GITHUB_EVENT_PATH}\" .pull_request.url)" --json 2> /dev/null |jq -r
.deploy_url)
+ DEPLOY_URL=$(yarn preview:netlify
--alias="pr-${PULL_REQUEST_NUMBER}" --message="Preview for ${PULL_REQUEST_URL}"
--json 2> /dev/null |jq -r .deploy_url)
echo "DEPLOY_URL=${DEPLOY_URL}" >> $GITHUB_ENV
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
+ PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
+ PULL_REQUEST_URL: ${{ github.event.pull_request.url }}
- uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}