Update tldr commands file #2383
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: Update tldr commands file | |
| on: | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python Environment | |
| uses: actions/setup-python@v5 | |
| - name: Install Requirements | |
| run: pip install -r ./tldrdict/requirements.txt | |
| - name: Execute get pages and version zips | |
| run: | | |
| cd tldrdict | |
| sudo apt install moreutils | |
| ./update_pages.sh | |
| - name: setup git config | |
| run: | | |
| git config user.name ${{ secrets.USERNAME }} | |
| git config user.email ${{ secrets.EMAIL }} | |
| - name: commit changes | |
| run: | | |
| ./tldrdict/commit.sh |