Skip to content

Commit 57e6053

Browse files
authored
Update bot checkout (#614)
1 parent 0f19f0a commit 57e6053

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/update_galata_references.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,13 @@ defaults:
1515
jobs:
1616
update-reference-screenshots:
1717
name: Update Galata References
18-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update galata references') }}
1918
runs-on: ubuntu-latest
19+
if: github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots')
2020

2121
steps:
22-
- name: React to the triggering comment
23-
run: |
24-
gh api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --raw-field 'content=+1'
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
28-
- name: Checkout
29-
uses: actions/checkout@v4
22+
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots-checkout@main
3023
with:
31-
token: ${{ secrets.GITHUB_TOKEN }}
32-
33-
- name: Checkout the branch from the PR that triggered the job
34-
run: gh pr checkout ${{ github.event.issue.number }}
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
3725

3826
- name: Install Conda environment with Micromamba
3927
uses: mamba-org/setup-micromamba@v2

0 commit comments

Comments
 (0)