File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 77 build :
88 name : ' build PR preview'
99 runs-on : ubuntu-latest
10- outputs :
11- sha : ${{ github.event.pull_request.head.sha }}
12- pr : ${{ github.event.number }}
1310
1411 steps :
1512 - uses : actions/checkout@v2
2017 use-npm-ci : true
2118 - run : npm run build-only
2219 - run : node scripts/insert_snapshot_warning
20+ - run : echo ${{ github.event.number }} > out/pr.txt
2321 - uses : actions/upload-artifact@v2
2422 with :
2523 name : out
Original file line number Diff line number Diff line change 4949 with :
5050 script : |
5151 console.log(${{ toJson(github.event) }});
52+ - run : echo "PULL_REQUEST=$(cat out/pr.txt)" >> $GITHUB_ENV
53+ - run : rm out/pr.txt && echo $PULL_REQUEST
5254 - run : node scripts/publish-preview
5355 env :
5456 CI_PREVIEW_TOKEN : ${{ secrets.CI_PREVIEW_TOKEN }}
55- PULL_REQUEST : ${{ github.event.workflow_run.pull_requests['0'].number }}
5657 GITHUB_HEAD_SHA : ${{ github.event.workflow_run.head_commit.id }}
You can’t perform that action at this time.
0 commit comments