From 30b2006e28debe23bf960ce2731a880ea45291d2 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 5 Nov 2024 15:15:04 +0800 Subject: [PATCH] chore: switch to docs branch --- .github/workflows/run_test_and_gen_report.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_test_and_gen_report.yml b/.github/workflows/run_test_and_gen_report.yml index 97e7eb6b..15f8181c 100644 --- a/.github/workflows/run_test_and_gen_report.yml +++ b/.github/workflows/run_test_and_gen_report.yml @@ -84,9 +84,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Switch to main branch - git fetch origin main - git checkout main + # Switch to docs branch + git fetch origin docs || git fetch origin main + git checkout docs || git checkout -b docs git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' @@ -103,8 +103,8 @@ jobs: # Create commit with timestamp git commit -m "docs: update compatibility test report" || echo "No changes to commit" - # Push changes to main branch - git push origin main + # Push changes to docs branch + git push origin docs