Skip to content

Commit 9de2463

Browse files
authored
Update bot checkout (#94)
1 parent f65527c commit 9de2463

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/update-integration-tests.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,20 @@ permissions:
1010

1111
jobs:
1212
update-snapshots:
13-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots') }}
1413
runs-on: ubuntu-latest
1514

16-
steps:
17-
- name: React to the triggering comment
18-
run: |
19-
gh api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --raw-field 'content=+1'
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
if: github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots')
2216

23-
- name: Checkout
24-
uses: actions/checkout@v6
17+
steps:
18+
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots-checkout@main
2519
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
2721

2822
- name: Setup Python
2923
uses: actions/setup-python@v6
3024
with:
3125
python-version: '3.14'
3226

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 }}
37-
3827
- name: Base Setup
3928
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
4029

0 commit comments

Comments
 (0)