We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53877bb commit 764a4faCopy full SHA for 764a4fa
.github/workflows/update_snapshot.yml
@@ -4,15 +4,23 @@ on:
4
workflow_dispatch:
5
push:
6
branches:
7
- - 'dependabot/**'
+ - 'dependabot/**'
8
+ issue_comment:
9
+ types: [created]
10
11
permissions:
12
contents: write
13
jobs:
14
update:
15
+ if: >
16
+ github.event_name == 'push' ||
17
+ github.event_name == 'workflow_dispatch' ||
18
+ (github.event.issue.pull_request && contains(github.event.comment.body, '/update-snapshot'))
19
runs-on: ubuntu-latest
20
steps:
21
- uses: actions/checkout@v5
22
+ with:
23
+ ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || '' }}
24
- name: Use Node.js
25
uses: actions/setup-node@v6
26
with:
0 commit comments