initial
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Update LibreWolf cask
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out tap
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Update from latest stable release
|
||||
run: python3 scripts/update_librewolf.py
|
||||
|
||||
- name: Commit update
|
||||
run: |
|
||||
if git diff --quiet -- Casks/librewolf.rb; then
|
||||
echo "LibreWolf is already up to date"
|
||||
exit 0
|
||||
fi
|
||||
git config user.name "librewolf-update-bot"
|
||||
git config user.email "librewolf-update-bot@users.noreply.gitea.com"
|
||||
git add Casks/librewolf.rb
|
||||
git commit -m "Update LibreWolf cask"
|
||||
git push
|
||||
Reference in New Issue
Block a user