Skip to content

Commit 6de1c71

Browse files
committed
Fix if condition
1 parent f32fd25 commit 6de1c71

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/update-screenshots.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
1616
jobs:
1717
update-screenshots:
18-
if: ${{ github.event.label.name == 'Update Screenshots' }}
18+
if: ${{ github.event.label.name == 'Update Screenshots' || github.event_name == 'workflow_dispatch' }}
1919
runs-on: ubuntu-latest
2020

2121
permissions:
@@ -36,6 +36,7 @@ jobs:
3636
node-version: 25
3737
check-latest: true
3838
- name: Remove label
39+
if: github.event_name == 'pull_request'
3940
run: gh pr edit --remove-label 'Update Screenshots'
4041
env:
4142
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)