Update Brew Casks #514
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
jobs: | |
updateCasks: | |
name: Update Brew Casks | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@v4 | |
- if: matrix.os == 'ubuntu-latest' | |
name: Config git for github-actions | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Update casks | |
run: |+ | |
sh update.sh | |
- name: Commit and push changes. | |
run: > | |
if [ "$(git status --porcelain)" ]; then | |
git add .; | |
git commit -m "action: update casks"; | |
git push; | |
fi | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
name: Update Brew Casks | |
"on": | |
schedule: | |
- cron: 37 21 * * * | |
workflow_dispatch: {} |