testiong #203
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: Generate Documentation | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
persist-credentials: true | |
- name: Document setup.sh | |
id: action-genshdoc-setup | |
uses: vargiuscuola/genshdoc@master | |
- name: Github Action genshdoc | |
id: action-genshdoc | |
uses: vargiuscuola/genshdoc@master | |
with: | |
args: ./bash-aliases/ | |
- name: genshdoc result | |
run: echo "The result of genshdoc Action was ${{ steps.action-genshdoc-setup.outputs.result }}" | |
- name: Commit files | |
run: | | |
echo ${{ github.ref }} | |
ls -lath . | |
cat REFERENCE.md | |
echo "***************" | |
cat REFERENCE-setup.md | |
cat REFERENCE-setup-commands.md | |
cat REFERENCE-configure-kcli.md | |
cat REFERENCE-random-functions.md | |
mkdir -p docs/REFERENCE | |
mv REFERENCE* docs/REFERENCE/ | |
ls -lath docs/REFERENCE/ | |
git add . | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git commit -m "CI: Automated build push" -a | exit 0 | |
- name: push | |
uses: ad-m/github-push-action@master | |
with: | |
ssh: true | |
branch: ${{ github.ref }} | |
directory: . |