Files
nginx-ui/.github/workflows/sync-main-on-release.yml
renovate[bot] edab6a238e chore(deps): update actions/checkout action to v6 (#1440)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-23 19:33:02 +08:00

30 lines
670 B
YAML

name: Sync branch
on:
workflow_dispatch:
release:
types: [published]
branches: [dev]
jobs:
force-push-main:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: dev
clean: false
token: ${{ secrets.PAT_TOKEN }}
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Force push dev to main
run: |
git fetch origin
git push origin dev:main --force