Skip to content

Commit

Permalink
ci(vrt): update workflow to use github app auth
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Dec 21, 2023
1 parent aa61b6e commit 45fe48f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/update_visual_snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ jobs:
runs-on:
labels: ubuntu-latest-16-cores
steps:
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
token: ${{ steps.generate_token.outputs.token }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -52,5 +59,6 @@ jobs:
with:
commit_message: github-actions[bot] Regenerated snapshots
- uses: actions-ecosystem/action-remove-labels@v1
if: always()
with:
labels: 'update snapshots'

0 comments on commit 45fe48f

Please sign in to comment.