Skip to content

Commit

Permalink
Trigger Release on Flutter and React Native (#110)
Browse files Browse the repository at this point in the history
* setting up release trigger workflow

* update trigger to pass release version number

* update trigger to pass release version number

* update trigger to pass release version number
  • Loading branch information
jumaallan authored Dec 19, 2023
1 parent ad9d7c9 commit 3242ea2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Trigger Release on Flutter and React Native

on:
release:
types:
- created

jobs:
trigger-release:
runs-on: ubuntu-latest

steps:
- name: Trigger Release on Flutter
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_ios.yml/dispatches \
--data '{"ref": "main","inputs": {"ios_release_version": "${{ github.event.release.tag_name }}" }}'
- name: Trigger Release Workflow in React Native
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/release_ios.yml/dispatches \
--data '{"ref": "main","inputs": {"ios_release_version": "${{ github.event.release.tag_name }}" }}'

0 comments on commit 3242ea2

Please sign in to comment.