Update docs #16
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: Update docs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 19 * * *' | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run docker-compose | |
uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: "./docker/docker-compose.yml" | |
- name: Execute updateDocs.sh in container | |
run: docker exec -it leap-ledger-server sh "./docs/updateDocs.sh" | |
- name: Commit and push changes | |
# https://github.com/actions/checkout/discussions/479 | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git add docs/ | |
git commit -m "Update docs" | |
git push origin ${{ github.ref }} | |
- name: Stop and remove container | |
uses: docker/compose-action@v3 | |
with: | |
compose-file: docker-compose.yml | |
args: down |