分支同步

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-08-06 10:18:23 +08:00
parent 3f0ec70ce1
commit 870f6bdeb0

View File

@ -0,0 +1,21 @@
name: Push custom to released
on:
workflow_dispatch:
jobs:
push-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: custom
- name: Push to released branch
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git push origin custom:released --force