diff --git a/.github/workflows/pr-receive.yml b/.github/workflows/pr-receive.yml index c8be38ea..316b58a5 100644 --- a/.github/workflows/pr-receive.yml +++ b/.github/workflows/pr-receive.yml @@ -16,6 +16,7 @@ jobs: run: | mkdir -p ./pr echo ${{ github.event.number }} > ./pr/NR + echo ${{ github.event.pull_request.head.sha }} > ./pr/SHA - uses: actions/upload-artifact@v2 with: name: pr diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index e9eb0472..c89825f0 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -38,7 +38,14 @@ jobs: - name: "Unzip" run: | unzip pr.zip - ls -l + cat NR + cat SHA + echo HEAD=$(cat SHA) >> $GITHUB_ENV + + - name: Checkout pull request HEAD commit + uses: actions/checkout@v2 + with: + ref: ${{ env.HEAD }} - name: "Comment on PR" uses: actions/github-script@v3