File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -9,21 +9,24 @@ permissions:
9
9
10
10
jobs :
11
11
test-action :
12
- name : GitHub Actions Test
12
+ name : GitHub Actions Testa
13
13
runs-on : ubuntu-latest
14
14
permissions :
15
15
pull-requests : write
16
16
if : github.event.issue.pull_request
17
17
steps :
18
- - name : Get PR branch
19
- uses : xt0rted/pull-request-comment-branch@v1
20
- id : comment-branch
21
-
22
18
- name : Checkout
23
19
id : checkout
24
20
uses : actions/checkout@v4
25
- with :
26
- ref : ${{ steps.comment-branch.outputs.head_ref }}
21
+
22
+ - name : Checkout Pull Request
23
+ env :
24
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
+ run : |
26
+ PR_URL="${{ github.event.issue.pull_request.url }}"
27
+ PR_NUM=${PR_URL##*/}
28
+ echo "Checking out from PR #$PR_NUM based on URL: $PR_URL"
29
+ hub pr checkout $PR_NUM
27
30
28
31
- name : Test Local Action
29
32
id : test-action
You can’t perform that action at this time.
0 commit comments