Skip to content

Commit 905a68d

Browse files
committed
Add steps to checkout the PR branch
1 parent 1fb5727 commit 905a68d

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

.github/workflows/validate.yaml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,23 @@ jobs:
1414
contains(github.event.comment.body, '/full-validation')
1515
)
1616
steps:
17-
- name: Checkout
17+
- name: Fetch Branch Name
18+
id: fetch-branch-name
19+
uses: xt0rted/pull-request-comment-branch@v2
20+
21+
- name: Check out code from ${{ steps.fetch-branch-name.outputs.head_ref }}
1822
uses: actions/checkout@v3
23+
with:
24+
ref: ${{ steps.fetch-branch-name.outputs.head_ref }}
25+
26+
- name: Post response to GitHub PR
27+
uses: mshick/add-pr-comment@v2
28+
with:
29+
message: |
30+
Action started. Click [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) to see the status.
31+
32+
# - name: Checkout
33+
# uses: actions/checkout@v3
1934

2035
- name: Validate
2136
run: |
@@ -31,19 +46,7 @@ jobs:
3146
fi
3247
3348
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
49+
4750

4851

4952

0 commit comments

Comments
 (0)