diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..6bbef3d6d --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}" }}' \ No newline at end of file