Skip to content

Commit 2419d75

Browse files
authored
Merge pull request #270 from SableClient/fix/workflows
Fix workflows
2 parents 8e67dba + 74a4d6a commit 2419d75

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/cloudflare-web-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '.github/actions/setup/**'
1010
push:
1111
tags:
12-
- 'sable/v*'
12+
- 'v*'
1313
workflow_dispatch:
1414

1515
env:

.github/workflows/prepare-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ jobs:
1414
contents: write
1515
pull-requests: write
1616
steps:
17+
- name: Generate bot token
18+
id: generate-token
19+
uses: actions/create-github-app-token@v1
20+
with:
21+
app-id: ${{ secrets.APP_ID }}
22+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
23+
1724
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1825
with:
1926
fetch-depth: 0
2027
persist-credentials: true
28+
token: ${{ steps.generate-token.outputs.token }}
2129

2230
- uses: fregante/setup-git-user@024bc0b8e177d7e77203b48dab6fb45666854b35 # v2.0.2
2331

@@ -28,12 +36,12 @@ jobs:
2836
- name: Prepare Release
2937
run: knope prepare-release --verbose
3038
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
3240

3341
- name: Enrich changelog and update release PR
3442
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
3543
with:
36-
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
github-token: ${{ steps.generate-token.outputs.token }}
3745
script: |
3846
const fs = require("fs");
3947
const { owner, repo } = context.repo;

0 commit comments

Comments
 (0)