From 46430ccbf24d2c36f68df6a0980cad99919072c0 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Thu, 28 Nov 2024 17:25:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- .../workflows/push_appstore_to_released.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/push_appstore_to_released.yml diff --git a/.github/workflows/push_appstore_to_released.yml b/.github/workflows/push_appstore_to_released.yml new file mode 100644 index 00000000..6297293a --- /dev/null +++ b/.github/workflows/push_appstore_to_released.yml @@ -0,0 +1,23 @@ +name: Push appstore to released + +on: + workflow_dispatch: + schedule: + - cron: '0 0 */3 * *' + +jobs: + push-branch: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: appstore + + - 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.GITHUBTOKEN }}@github.com/${{ github.repository }}.git + git push origin appstore:released --force