Skip to content

Promote Staging

Promote Staging #8

name: Promote Staging
on:
workflow_dispatch:
schedule:
# Runs at 1 or 2 AM Eastern Time
- cron: "0 6 * * *"
permissions:
contents: write
# All this job does is fast forward the release branch to the latest commit on staging
jobs:
do-release:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: release
ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }}
- name: Fast forward release branch to staging
run: |
git fetch origin staging
git merge --ff-only origin/staging
git push origin release