Skip to content

Commit e7af117

Browse files
committed
Checkout before changed-files action
Because the action cannot use GH API for merge_group events
1 parent 71e3a3e commit e7af117

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/preview-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242

43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
with:
46+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
47+
persist-credentials: false
48+
4349
- name: Get changed files
4450
if: startsWith(github.event_name, 'pull_request') || github.event_name == 'merge_group'
4551
id: check-files

0 commit comments

Comments
 (0)