Skip to content

Commit 6629ccc

Browse files
authored
ci: checkout to PR branch (#274)
1 parent 967975b commit 6629ccc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/publish-commit.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# Publishes main-branch's commits to pkg.pr.new
21
# PRs can be published by commenting `/pkg-pr-new` in the PR
32

43
name: Publish Any Commit
54

65
on:
7-
push:
8-
branches:
9-
- main
106
issue_comment:
117
types: [created]
128

@@ -57,7 +53,7 @@ jobs:
5753
- name: Checkout
5854
uses: actions/checkout@v4
5955
with:
60-
fetch-depth: 0
56+
ref: refs/pull/${{ github.event.issue.number }}/head
6157

6258
- uses: ./.github/actions/setup-and-build
6359

0 commit comments

Comments
 (0)