diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 4aee640..bf4a21f 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -13,7 +13,7 @@ on: 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... `' + description: '[Optional] Paste a PAT here. If left blank, PAT_TOKEN secret will be used (if set). Used to solve `refusing to allow a GitHub App to create or update workflow... `, more info at https://github.com/lyc8503/UptimeFlare/wiki/Synchronize-updates-from-upstream#upgrade-methods' required: false jobs: @@ -25,7 +25,7 @@ jobs: - name: Checkout target repo uses: actions/checkout@v3 with: - token: ${{ inputs.override-token || secrets.GITHUB_TOKEN }} + token: ${{ inputs.override-token || secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }} - name: Current config run: |