From 870f6bdeb0e3306a5eb8923cd479f2b2ff74d511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Tue, 6 Aug 2024 10:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=94=AF=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 萌森 --- .github/workflows/push_custom_to_released.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/push_custom_to_released.yml diff --git a/.github/workflows/push_custom_to_released.yml b/.github/workflows/push_custom_to_released.yml new file mode 100644 index 000000000..f13e76e83 --- /dev/null +++ b/.github/workflows/push_custom_to_released.yml @@ -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