Update apps #101
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 apps | |
| on: | |
| schedule: | |
| - cron: "0 0,12 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Run update checker | |
| run: | | |
| bash etc/tools/updates.sh | |
| - name: Commit changes | |
| run: | | |
| current_date=$(date +'%d/%m/%Y, %H:%M') | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "GitHub Actions" | |
| git add -A | |
| cat updates_list.txt > /tmp/updates && rm -r updates_list.txt | |
| git commit -m "Update $(cat /tmp/updates)" | |
| - name: Push changes | |
| run: | | |
| git push https://${{ secrets.GH_TOKEN }}@github.com/techguy16/LinStore |