-
Notifications
You must be signed in to change notification settings - Fork 27
34 lines (30 loc) · 1.05 KB
/
Copy pathtrunk-upgrade.yml
File metadata and controls
34 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Run trunk upgrade
on:
workflow_call:
schedule:
- cron: 0 0 1 * *
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
generate-and-call-upgrade:
runs-on: ubuntu-latest
outputs:
generated-token: ${{ steps.generate-token.outputs.token }}
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.SDK_RELEASE_GITHUB_CLIENT_ID }} # trunk-ignore(actionlint/expression)
private-key: ${{ secrets.SDK_RELEASE_GITHUB_APP_PRIVATE_KEY }} # trunk-ignore(actionlint/expression)
owner: ${{ github.repository_owner }}
repositories: |
react-native-mparticle
trunk-upgrade:
needs: generate-and-call-upgrade
name: Run trunk upgrade
uses: ROKT/rokt-workflows/.github/workflows/trunk-upgrade.yml@main # trunk-ignore(actionlint/workflow-call)
with:
token: ${{ needs.generate-and-call-upgrade.outputs.generated-token }}