Skip to content

Commit 87de0ec

Browse files
update mirror.yaml workflow permissions (westpa#472)
1 parent 88b7200 commit 87de0ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/mirror.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ on:
44
schedule:
55
# Once a month on the 28th day at 4 pm UTC, which is ~11 am EST.
66
- cron: "00 16 28 * *"
7+
workflow_dispatch:
78

89
jobs:
910
mirror-develop-to-westpa2:
1011
runs-on: ubuntu-latest
1112
name: Mirror develop branch to westpa2 branch
1213
steps:
14+
- uses: actions/create-github-app-token@v1
15+
id: app-token
16+
with:
17+
app-id: ${{ vars.BRANCH_MIRROR_APPID }}
18+
private-key: ${{ secrets.BRANCH_MIRROR_SECRET }}
1319
- uses: actions/checkout@v4
1420
with:
1521
fetch-depth: 0
22+
token: ${{ steps.app-token.outputs.token }}
1623
- name: mirroring step
1724
run: |
1825
git checkout westpa2

0 commit comments

Comments
 (0)