File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,24 +10,20 @@ jobs:
1010 sync :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Generate GitHub App Token
14- id : app-token
15- uses : actions/create-github-app-token@v1
16- with :
17- app-id : ${{ secrets.CLAUDE_APP_ID }}
18- private-key : ${{ secrets.CLAUDE_APP_PRIVATE_KEY }}
19- owner : MervinPraison
20-
2113 - name : Sync secrets to PraisonAIUI
2214 env :
23- GH_TOKEN : ${{ steps.app-token.outputs.token }}
15+ GH_TOKEN : ${{ secrets.SECRETS_ADMIN_PAT }}
2416 TARGET : MervinPraison/PraisonAIUI
2517 CLAUDE_APP_ID : ${{ secrets.CLAUDE_APP_ID }}
2618 CLAUDE_APP_PRIVATE_KEY : ${{ secrets.CLAUDE_APP_PRIVATE_KEY }}
2719 CLAUDE_CODE_OAUTH_TOKEN : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
2820 GH_TOKEN_VALUE : ${{ secrets.GH_TOKEN }}
2921 run : |
3022 set -euo pipefail
23+ if [ -z "${GH_TOKEN:-}" ]; then
24+ echo "SECRETS_ADMIN_PAT is not configured in this repository"
25+ exit 1
26+ fi
3127 echo -n "$CLAUDE_APP_ID" | gh secret set CLAUDE_APP_ID --repo "$TARGET"
3228 echo -n "$CLAUDE_APP_PRIVATE_KEY" | gh secret set CLAUDE_APP_PRIVATE_KEY --repo "$TARGET"
3329 echo -n "$CLAUDE_CODE_OAUTH_TOKEN" | gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo "$TARGET"
You can’t perform that action at this time.
0 commit comments