Update 3rd-party assets (daily) #790
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 3rd-party assets (daily) | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
if: github.repository_owner == 'uBlockOrigin' | |
permissions: | |
contents: write # for Git to git push | |
name: Update 3rd-party assets | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Fetch 3rd-party assets | |
run: | | |
./tools/update-3rdparties.sh | |
- name: Commit changes, if any | |
run: | | |
if [[ -n $(git diff) ]]; then | |
git config user.name "github-actions bot" | |
git config user.email "<>" | |
git add -u thirdparties/ | |
git commit -m "Update all 3rd-party assets" | |
git push origin master | |
fi |