name: Promote dev to main (prod) permissions: contents: write on: schedule: - cron: "0 8 * * *" workflow_dispatch: concurrency: group: promote-dev-to-main cancel-in-progress: false jobs: promote: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 with: ref: dev fetch-depth: 0 - name: Fast-forward main (PROD) to dev # main is the production branch; a plain ref push is fast-forward-only # (branch protection rejects non-FF), so a diverged main fails loudly. run: | git push origin HEAD:refs/heads/main