Skip to content

Commit 2c100c2

Browse files
authored
Merge pull request #4733 from OAI/dev
v3.2-dev: update from dev
2 parents 4972cc0 + 7b9aa7b commit 2c100c2

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/sync-dev-to-vX.Y-dev.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
sync-branches:
1717
runs-on: ubuntu-latest
1818
steps:
19+
- name: Generate access token
20+
id: generate-token
21+
uses: actions/create-github-app-token@v2
22+
with:
23+
app-id: ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
24+
private-key: ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
25+
1926
- name: Checkout repository
2027
uses: actions/checkout@v4
2128
with:
@@ -41,5 +48,5 @@ jobs:
4148
--body "Merge \`$HEAD\` into \`$BASE\`."
4249
done
4350
env:
44-
GH_TOKEN: ${{ github.token }}
51+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
4552
HEAD: dev

.github/workflows/sync-main-to-dev.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
sync-branch:
1717
runs-on: ubuntu-latest
1818
steps:
19+
- name: Generate access token
20+
id: generate-token
21+
uses: actions/create-github-app-token@v2
22+
with:
23+
app-id: ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
24+
private-key: ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
25+
1926
- name: Checkout repository
2027
uses: actions/checkout@v4
2128

@@ -35,6 +42,6 @@ jobs:
3542
--title "$BASE: update from $HEAD" \
3643
--body "Merge \`$HEAD\` into \`$BASE\`."
3744
env:
38-
GH_TOKEN: ${{ github.token }}
45+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
3946
HEAD: main
4047
BASE: dev

0 commit comments

Comments
 (0)