Fix Bailsec Issue_19 #106
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
name: Wiki | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- pol-flow | |
jobs: | |
wiki: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: maticX | |
- name: Checkout wiki repository | |
uses: actions/checkout@v4 | |
with: | |
repository: stader-labs/maticX.wiki | |
path: maticX.wiki | |
- name: Mirror docs to wiki | |
run: | | |
cd $GITHUB_WORKSPACE/maticX.wiki | |
git config user.name Actions | |
git config user.email [email protected] | |
cp $GITHUB_WORKSPACE/maticX/docs/*.md $GITHUB_WORKSPACE/maticX.wiki | |
git add . | |
git diff-index --quiet HEAD -- || git commit -m "Mirror docs to wiki" | |
git push |