chore: test using ref sha
This commit is contained in:
parent
5409b33992
commit
84d2c4f1a6
8
.github/workflows/publish.yaml
vendored
8
.github/workflows/publish.yaml
vendored
|
|
@ -52,6 +52,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
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
|
# Run a build step here
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user