chore: test using ref sha

This commit is contained in:
zernonia 2024-01-16 23:08:25 +08:00
parent 5409b33992
commit 84d2c4f1a6

View File

@ -52,6 +52,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
fetch-depth: 0
- name: Print pull request head information
run: |
echo "Pull Request SHA: ${{ github.event.pull_request.head.sha }}"
echo "Pull Request Ref: ${{ github.event.pull_request.head.ref }}"
# Run a build step here
- name: Setup Node.js environment