Promote Staging #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |