-
Notifications
You must be signed in to change notification settings - Fork 754
Expand file tree
/
Copy pathtrigger-backend-enterprise-update.yml
More file actions
40 lines (35 loc) · 1.29 KB
/
trigger-backend-enterprise-update.yml
File metadata and controls
40 lines (35 loc) · 1.29 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
35
36
37
38
39
40
name: Update vendored version in grafana/backend-enterprise
on:
push:
branches:
- 'r[0-9]*'
- 'main'
permissions:
contents: read
id-token: write
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Retrieve GitHub App Credentials from Vault
id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@28361cdb22223e5f1e34358c86c20908e7248760 # v1.1.0
with:
repo_secrets: |
APP_ID=mimir-github-bot:app_id
PRIVATE_KEY=mimir-github-bot:private_key
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
with:
# Variables generated by the previous step get-secrets
app-id: ${{ env.APP_ID }}
private-key: ${{ env.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Send repository_dispatch to grafana/backend-enterprise
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
with:
token: ${{ steps.app-token.outputs.token }}
repository: grafana/backend-enterprise
event-type: mimir-branch-push
client-payload: '{"branch_name": "${{ github.ref_name }}"}'