Skip to content

sync-stage-into-prod #128

sync-stage-into-prod

sync-stage-into-prod #128

name: sync-stage-into-prod
on:
workflow_dispatch:
schedule:
- cron: '45 1,7 * * *'
jobs:
sync-stage-into-master:
if: (github.repository == 'Adventech/sabbath-school-resources' && github.ref_name == 'stage')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: stage
fetch-depth: 0
persist-credentials: false
github_token: ${{ secrets.PERSONAL_GH_TOKEN }}
- name: Get Status of current ref
id: get-status
uses: danieldeichfuss/get-status@v0.0.10
with:
ref: ${{ github.sha }}
- name: Merge stage -> prod
if: ${{steps.get-status.outputs.all-checks-completed == 'true' && steps.get-status.outputs.all-checks-passed == 'true'}}
uses: devmasx/merge-branch@master
with:
type: now
from_branch: stage
target_branch: prod
github_token: ${{ secrets.PERSONAL_GH_TOKEN }}