From 992d4a8a1f081f1ab7686a5f31f5a76a8bea3baa Mon Sep 17 00:00:00 2001 From: Arunma <41282634+gitmkn@users.noreply.github.com> Date: Fri, 7 Mar 2025 15:35:49 +0800 Subject: [PATCH] Create sync-code.yaml add sync-code --- .github/workflows/sync-code.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/sync-code.yaml diff --git a/.github/workflows/sync-code.yaml b/.github/workflows/sync-code.yaml new file mode 100644 index 00000000..63cbd4e5 --- /dev/null +++ b/.github/workflows/sync-code.yaml @@ -0,0 +1,31 @@ +name: sync-code + +on: + push: + branches: + - main + - 'coding-test/**' + - 'pipeline/**' + tags: v* + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: clone + run: | + if [ -d packer-plugin-tencentcloud ]; then + rm -rf packer-plugin-tencentcloud + fi + git clone https://github.com/tencentcloudstack/packer-plugin-tencentcloud.git + - name: sync + run: | + cd packer-plugin-tencentcloud + git fetch --all + git branch -r --list "origin/coding-test/*" | grep -v HEAD | grep -v master | xargs -I {} git checkout -t {} + git branch -r --list "origin/pipeline/*" | grep -v HEAD | grep -v master | xargs -I {} git checkout -t {} + git remote add tgit_origin https://${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}@git.code.tencent.com/tencentcloudstack/packer-plugin-tencentcloud.git + git push -u tgit_origin -f --all + git push -u tgit_origin main:main + git push -u tgit_origin --tags pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy