Fix permission problem when upgrading

pull/47/head
lyc8503 2024-06-30 20:20:03 +08:00 committed by GitHub
parent 31b68dd928
commit 6f7df0a37a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@ on:
type: boolean
required: true
default: false
override-token:
description: '[Optional] Replace the default token with the supplied PAT. Used to resolve `refusing to allow a GitHub App to create or update workflow... `'
required: false
jobs:
sync_latest_from_upstream:
@ -20,6 +23,8 @@ jobs:
steps:
- name: Checkout target repo
uses: actions/checkout@v3
with:
token: ${{ inputs.override-token || secrets.GITHUB_TOKEN }}
- name: Current config
run: |