Skip to content

Commit 57fb847

Browse files
committed
Fix running approve snapshots workflow manually
1 parent 6336f78 commit 57fb847

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/approve-snapshots.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Get branch name for PR
15+
if: github.event_name == 'issue_comment'
1516
uses: andrevalentin/get-branch-name-by-pr@v1
1617
id: getBranchName
1718
with:
@@ -21,7 +22,7 @@ jobs:
2122
- name: Checkout 🏷️
2223
uses: actions/checkout@v4
2324
with:
24-
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || steps.getBranchName.outputs.branch }}
25+
ref: ${{ steps.getBranchName && steps.getBranchName.outputs.branch || github.event.ref }}
2526

2627
- name: Set up Node 🕹️
2728
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)