From 9ed49b454897b47865acaa0f3590a03ee3db3328 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 14 Jan 2026 16:40:47 +0100 Subject: [PATCH] Update bot checkout --- .../workflows/update_galata_references.yaml | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/update_galata_references.yaml b/.github/workflows/update_galata_references.yaml index 1a21f78..6b4d827 100644 --- a/.github/workflows/update_galata_references.yaml +++ b/.github/workflows/update_galata_references.yaml @@ -15,30 +15,14 @@ defaults: jobs: update-reference-screenshots: name: Update Galata References - if: > - ( - github.event.issue.author_association == 'OWNER' || - github.event.issue.author_association == 'COLLABORATOR' || - github.event.issue.author_association == 'MEMBER' - ) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots') + runs-on: ubuntu-latest + if: github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots') steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots-checkout@main with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Configure git to use https - run: git config --global hub.protocol https - - - name: Install hub - run: sudo apt-get update && sudo apt-get install -y hub - - - name: Checkout the branch from the PR that triggered the job - run: hub pr checkout ${{ github.event.issue.number }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Install Conda environment with Micromamba uses: mamba-org/setup-micromamba@main