Skip to content

Commit 60c6dd7

Browse files
committed
Fix plugin slug script to use correct PR head SHA
1 parent 5dc17d6 commit 60c6dd7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/plugin-artifact-for-pr.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19-
with:
20-
ref: ${{ github.event.pull_request.head.sha }}
21-
fetch-depth: 0
2219

2320
- name: Get changed plugin directory
2421
id: plugin
2522
run: |
26-
bash .github/scripts/get_plugin_slug.sh ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
23+
bash .github/scripts/get_plugin_slug.sh \
24+
${{ github.event.pull_request.base.sha }} \
25+
${{ github.event.pull_request.head.sha }}
2726
2827
- name: Create plugin artifact
2928
uses: ./.github/actions/create-plugin-artifact

0 commit comments

Comments
 (0)