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