update #235
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 | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| permissions: | |
| contents: write | |
| jobs: | |
| update: | |
| name: update | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Run update | |
| run: bash update.sh | |
| - name: show git diff | |
| run: git diff HEAD | |
| - name: Exit early if no meaningful changes | |
| run: | | |
| git diff --exit-code -I'"version":' -I'"log_list_timestamp":' -I'kCTExpirationTime' -- ':(exclude)*.sig' && exit 0 || echo "Changes found." | |
| git add . | |
| DATE=$(date -u "+%Y-%m-%d %H:%M:%S UTC") | |
| git commit -m "Automated update: ${DATE}" | |
| git push origin HEAD:main |