Update Users-Data-Studio.md #899
This file contains hidden or 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: Push wiki | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| paths: | |
| - 'wiki/**' | |
| workflow_dispatch: | |
| jobs: | |
| pushwiki: | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Checkout GAM source | |
| run: | | |
| # checkout via normal shell here | |
| # so we're not authorized to actually make any changes | |
| git clone https://github.com/GAM-team/GAM | |
| - name: Checkout Wiki source | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| path: GAM.wiki | |
| repository: GAM-team/GAM.wiki | |
| persist-credentials: true | |
| fetch-depth: 0 | |
| - name: Overwrite all Wiki repo files with /wiki from main git | |
| run: | | |
| # remove all wiki repo files so deletes work | |
| rm -fv GAM.wiki/*.md | |
| # copy all files from main GAM repo wiki folder | |
| cp -fv GAM/wiki/*.md GAM.wiki/ | |
| - name: Commit Wiki changes | |
| run: | | |
| cd GAM.wiki | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add -A | |
| git commit -m "[no ci] Push Wiki changes" | |
| git status | |
| git push |