Skip to content

Commit

Permalink
Update m2p.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LY-Xiang committed Aug 11, 2024
1 parent f5da8bf commit 4838d73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/m2p.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@ on:
- main
jobs:
m2p:
permissions:
contents: write
actions: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
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
Expand Down

0 comments on commit 4838d73

Please sign in to comment.