Skip to content

Commit dfb202f

Browse files
committed
refactor(ci): added release app
1 parent a1b794e commit dfb202f

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,21 @@ jobs:
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:

0 commit comments

Comments
 (0)