Skip to content

Commit b48456a

Browse files
authored
Update bot checkout (#27)
1 parent 57a86a5 commit b48456a

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/update_galata_references.yaml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,14 @@ defaults:
1515
jobs:
1616
update-reference-screenshots:
1717
name: 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')
18+
2419
runs-on: ubuntu-latest
20+
if: github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots')
2521

2622
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v4
23+
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots-checkout@main
2924
with:
30-
token: ${{ secrets.GITHUB_TOKEN }}
31-
32-
- name: Configure git to use https
33-
run: git config --global hub.protocol https
34-
35-
- name: Install hub
36-
run: sudo apt-get update && sudo apt-get install -y hub
37-
38-
- name: Checkout the branch from the PR that triggered the job
39-
run: hub pr checkout ${{ github.event.issue.number }}
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
4226

4327
- name: Install Conda environment with Micromamba
4428
uses: mamba-org/setup-micromamba@main

0 commit comments

Comments
 (0)