File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 # Only run if a PR was successfully merged into the main branch
4040 if : github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true)
4141 needs : [ build-and-test ] # Ensures build-and-test passed on the merge commit
42-
4342 steps :
43+ # 1. Generate a temporary token from your new GitHub App
44+ - name : Generate GitHub App Token
45+ id : generate_token
46+ uses : actions/create-github-app-token@v1
47+ with :
48+ app-id : ${{ secrets.APP_ID }}
49+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
50+ # 2. Check out the code using the App's token
51+ - name : Full Checkout for Release Process
52+ uses : actions/checkout@v6
53+ with :
54+ fetch-depth : 0
55+ ref : ' main'
56+ token : ${{ steps.generate_token.outputs.token }}
4457 - name : Full Checkout for Release Process
4558 uses : actions/checkout@v4
4659 with :
You can’t perform that action at this time.
0 commit comments