Skip to content

Commit f1577ef

Browse files
committed
chore: Use personal access token
1 parent 6cb8e77 commit f1577ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build-workflows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ workflow.addJob(
3535
action("peter-evans/create-pull-request", {
3636
if: "${{ failure() && steps.check.outcome == 'failure' }}",
3737
with: {
38-
token: "${{ github.token }}",
38+
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}",
3939
title: "chore: Build Workflows",
4040
"commit-message": "chore: Build Workflows",
4141
body: "Created from #${{ github.event.pull_request.number }}.",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DO NOT EDIT THIS FILE
22
# This file is automatically generated by ghats (https://www.npmjs.com/package/ghats)
33
# Edit the workflow in .github/workflows/build-workflows.ts instead, and run `ghats build` to update this file.
4-
{"name":"Build Workflows","on":{"pull_request":{"paths":[".github/workflows/**"]}},"permissions":{},"jobs":{"build":{"runs-on":"ubuntu-latest","permissions":{"contents":"write","pull-requests":"write"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"bunx ghats install"},{"run":"bun run gha:build"},{"id":"check","run":"\n git add ./.github/workflows\n if ! git diff --quiet --exit-code --staged ./.github/workflows; then\n echo \"Workflows are not built\"\n exit 1\n fi\n "},{"if":"${{ failure() && steps.check.outcome == 'failure' }}","with":{"token":"${{ github.token }}","title":"chore: Build Workflows","commit-message":"chore: Build Workflows","body":"Created from #${{ github.event.pull_request.number }}.","base":"${{ github.head_ref }}","branch":"build-workflows/${{ github.head_ref }}"},"uses":"peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e"}]}}}
4+
{"name":"Build Workflows","on":{"pull_request":{"paths":[".github/workflows/**"]}},"permissions":{},"jobs":{"build":{"runs-on":"ubuntu-latest","permissions":{"contents":"write","pull-requests":"write"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"bunx ghats install"},{"run":"bun run gha:build"},{"id":"check","run":"\n git add ./.github/workflows\n if ! git diff --quiet --exit-code --staged ./.github/workflows; then\n echo \"Workflows are not built\"\n exit 1\n fi\n "},{"if":"${{ failure() && steps.check.outcome == 'failure' }}","with":{"token":"${{ secrets.PERSONAL_ACCESS_TOKEN }}","title":"chore: Build Workflows","commit-message":"chore: Build Workflows","body":"Created from #${{ github.event.pull_request.number }}.","base":"${{ github.head_ref }}","branch":"build-workflows/${{ github.head_ref }}"},"uses":"peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e"}]}}}

0 commit comments

Comments
 (0)