Skip to content

Commit f342f57

Browse files
another-rexG-Rath
andauthored
test: have the osv-robot make the PRs for us (#1909)
Co-authored-by: Gareth Jones <Jones258@Gmail.com>
1 parent 8ac3db2 commit f342f57

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

.github/workflows/snapshots.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,14 @@ jobs:
3333
TEST_ACCEPTANCE: true
3434
UPDATE_SNAPS: always
3535
- uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1
36-
id: create-or-update-pull-request
3736
env:
38-
GITHUB_TOKEN: ${{ github.token }}
37+
GITHUB_TOKEN: ${{ secrets.PR_TOKEN_BOT }}
3938
with:
4039
title: "test: update snapshots"
4140
body: >
4241
The snapshots have changed, probably due to OSV advisories being changed.
4342
4443
Please review the differences to make sure that they're expected!
4544
branch: "bot/update-snapshots"
46-
author: "another-rex <rexpan@google.com>"
45+
author: "osv-robot <osv-robot@google.com>"
4746
commit-message: "test: update snapshots"
48-
- uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
49-
if: steps.create-or-update-pull-request.outputs.result != 'unchanged'
50-
with:
51-
route: |
52-
POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
53-
owner: ${{ github.repository_owner }}
54-
repo: ${{ github.event.repository.name }}
55-
workflow_id: checks.yml
56-
ref: bot/update-snapshots
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)