-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/template-docusaurus'
- Loading branch information
Showing
3 changed files
with
46 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
on: | ||
push: | ||
branches: ['master'] | ||
workflow_dispatch: | ||
|
||
name: Sync Submodule | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
sync-submodule: | ||
name: Generate Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Pull all submodule | ||
run: git submodule update --init --recursive | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Setup Git | ||
run: | | ||
git config user.name '${{secrets.MAINTAINER_NAME}}' | ||
git config user.email '${{secrets.MAINTAINER_EMAIL}}' | ||
- name: Sync submodule | ||
run: | | ||
git submodule update --remote --merge | ||
# on: | ||
# push: | ||
# branches: ['master'] | ||
# workflow_dispatch: | ||
|
||
# name: Sync Submodule | ||
|
||
# env: | ||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# jobs: | ||
# sync-submodule: | ||
# name: Sync Submodule | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Pull all submodule | ||
# run: git submodule update --init --recursive | ||
|
||
# - name: Setup Node.js | ||
# uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: "16" | ||
|
||
# - name: Setup Git | ||
# run: | | ||
# git config user.name '${{secrets.MAINTAINER_NAME}}' | ||
# git config user.email '${{secrets.MAINTAINER_EMAIL}}' | ||
|
||
# - name: Sync submodule | ||
# run: | | ||
# git submodule update --remote --merge | ||
|
||
- name: Create pull request | ||
run: | | ||
git add . | ||
git checkout -b sync-submodule | ||
git config pull.rebase false | ||
git pull origin sync-submodule | ||
git push --set-upstream origin sync-submodule | ||
gh pr create --title "Sync submodule" --body "Sync submodule" --base master --head sync-submodule --repo ${{ github.repository }} | ||
# - name: Create pull request | ||
# run: | | ||
# git add . | ||
# git checkout -b sync-submodule | ||
# git config pull.rebase false | ||
# git pull origin sync-submodule | ||
# git push --set-upstream origin sync-submodule | ||
# gh pr create --title "Sync submodule" --body "Sync submodule" --base master --head sync-submodule --repo ${{ github.repository }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters