Skip to content

Commit 64bad5a

Browse files
committed
Fix bot
Signed-off-by: martinRenou <martin.renou@gmail.com>
1 parent 6ebe802 commit 64bad5a

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/update_galata_references.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ defaults:
1515
jobs:
1616
update-reference-screenshots-ipw7:
1717
name: Update Galata References - ipywidgets 7
18-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update galata references') }}
18+
if: >
19+
(
20+
github.event.issue.author_association == 'OWNER' ||
21+
github.event.issue.author_association == 'COLLABORATOR' ||
22+
github.event.issue.author_association == 'MEMBER'
23+
) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots')
1924
runs-on: ubuntu-latest
2025

2126
steps:
@@ -43,15 +48,20 @@ jobs:
4348

4449
- name: Install the package
4550
run: pip install -vv .
46-
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@main
51+
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
4752
with:
4853
github_token: ${{ secrets.GITHUB_TOKEN }}
4954
server_url: http-get://localhost:8888/
5055
test_folder: ui-tests-ipw7
5156

5257
update-reference-screenshots-ipw8:
5358
name: Update Galata References - ipywidgets 8
54-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update galata references') }}
59+
if: >
60+
(
61+
github.event.issue.author_association == 'OWNER' ||
62+
github.event.issue.author_association == 'COLLABORATOR' ||
63+
github.event.issue.author_association == 'MEMBER'
64+
) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots')
5565
runs-on: ubuntu-latest
5666

5767
steps:
@@ -86,7 +96,7 @@ jobs:
8696
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
8797
run: jlpm install
8898

89-
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@main
99+
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
90100
with:
91101
npm_client: jlpm
92102
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)