Skip to content

Deploy All Prod

Deploy All Prod #74

name: "Deploy All Prod"
on:
schedule:
- cron: '0 8 * * 1'
workflow_dispatch:
jobs:
notify:
name: "Trigger Production Deploys"
runs-on: ubuntu-latest
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
steps:
- name: Notify Api
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/Api
PARENT_BRANCH: main
WORKFLOW_ID: 5393792
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify LessonsApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/LessonsApi
PARENT_BRANCH: main
WORKFLOW_ID: 12009770
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify B1Admin
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/B1Admin
PARENT_BRANCH: main
WORKFLOW_ID: 5436869
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify ChurchAppsWeb
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/ChurchAppsWeb
PARENT_BRANCH: main
WORKFLOW_ID: 5551204
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'