-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (51 loc) · 2.1 KB
/
post_release.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Post-Release Actions
on:
release:
types:
- created
jobs:
bump-cross-platform-sdks:
runs-on: ubuntu-latest
steps:
- name: Create Flutter PR
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" \
https://api.github.com/repos/smileidentity/flutter/actions/workflows/release_android.yml/dispatches \
--data '{"ref": "main","inputs": {"android_release_version": "${{ github.event.release.tag_name }}" }}'
- name: Create React Native PR
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" \
https://api.github.com/repos/smileidentity/react-native/actions/workflows/android_release.yml/dispatches \
--data '{"ref": "main","inputs": {"android_release_version": "${{ github.event.release.tag_name }}" }}'
update-docs-release-notes:
runs-on: ubuntu-latest
steps:
- name: Checkout android
uses: actions/checkout@v4
with:
path: android
- name: Checkout docs
uses: actions/checkout@v4
with:
repository: smileidentity/docs
path: docs
token: ${{ secrets.GH_PAT }}
- name: Copy CHANGELOG.md to Release Notes
run: cp android/CHANGELOG.md docs/integration-options/mobile/android-v10/release-notes.md
- name: Create docs PR
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_PAT }}
path: docs
commit-message: Android ${{ github.event.release.tag_name }} Release Notes
title: Android ${{ github.event.release.tag_name }} Release Notes
body: Automated PR to update the release notes
branch: android-release-notes-${{ github.event.release.tag_name }}
labels: "release-notes"
team-reviewers: "smileidentity/mobile"