get PR info
This commit is contained in:
13
.github/workflows/netlify-pr.yaml
vendored
13
.github/workflows/netlify-pr.yaml
vendored
@@ -18,6 +18,19 @@ jobs:
|
|||||||
deployments: write
|
deployments: write
|
||||||
environment: Netlify
|
environment: Netlify
|
||||||
steps:
|
steps:
|
||||||
|
- name: "Get PR information"
|
||||||
|
uses: potiuk/get-workflow-origin@v1_3
|
||||||
|
id: pr-info
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||||
|
|
||||||
|
- name: Update env.PR_NUMBER if empty
|
||||||
|
run: |
|
||||||
|
if [ -z "$PR_NUMBER" ]; then
|
||||||
|
echo "PR_NUMBER=${{ steps.source-run-info.outputs.pullRequestNumber }}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- run: ${{ tojson(github.event) }}
|
- run: ${{ tojson(github.event) }}
|
||||||
shell: cat {0}
|
shell: cat {0}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user