debug: workflow

This commit is contained in:
Max 2022-02-25 21:23:48 +08:00
parent a49e4edcc1
commit 148738ff23
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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