We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6336f78 commit 57fb847Copy full SHA for 57fb847
.github/workflows/approve-snapshots.yml
@@ -12,6 +12,7 @@ jobs:
12
13
steps:
14
- name: Get branch name for PR
15
+ if: github.event_name == 'issue_comment'
16
uses: andrevalentin/get-branch-name-by-pr@v1
17
id: getBranchName
18
with:
@@ -21,7 +22,7 @@ jobs:
21
22
- name: Checkout 🏷️
23
uses: actions/checkout@v4
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 }}
26
27
- name: Set up Node 🕹️
28
uses: actions/setup-node@v4
0 commit comments