From 4838d739e08206236b7cd6068981268d758c6d02 Mon Sep 17 00:00:00 2001 From: LY-Xiang <3047563007@qq.com> Date: Sun, 11 Aug 2024 18:23:43 +0800 Subject: [PATCH] Update m2p.yml --- .github/workflows/m2p.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/m2p.yml b/.github/workflows/m2p.yml index 6a8aa1a0..c0f4cb16 100644 --- a/.github/workflows/m2p.yml +++ b/.github/workflows/m2p.yml @@ -5,6 +5,9 @@ on: - main jobs: m2p: + permissions: + contents: write + actions: write runs-on: ubuntu-latest steps: - name: Checkout @@ -12,9 +15,12 @@ jobs: with: fetch-depth: 0 - name: Merge and Push + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | # git config user.name "github-actions[bot]" # git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + gh auth setup-git git checkout gh-pages git merge main -m "sync from branch main" git push