Skip to content

Commit 50a46d3

Browse files
authored
chore: Trigger core update on mobile on release (#1090)
1 parent cf1043f commit 50a46d3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/update-apps.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update CoMapeo Apps
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
update-mobile:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create GitHub App Token
12+
uses: actions/create-github-app-token@v1
13+
id: app-token
14+
with:
15+
app-id: ${{ vars.PR_BOT_APP_ID }}
16+
private-key: ${{ secrets.PR_BOT_PRIVATE_KEY }}
17+
- name: Trigger comapeo-mobile update-core workflow
18+
run: |
19+
gh api \
20+
--method POST \
21+
-H "Accept: application/vnd.github+json" \
22+
-H "X-GitHub-Api-Version: 2022-11-28" \
23+
/repos/digidem/comapeo-mobile/dispatches \
24+
-f event_type=update-core
25+
env:
26+
GH_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)