mirror of
https://codefloe.com/Jonas8272/scoop-bucket.git
synced 2026-11-30 23:09:35 +00:00
Add .forgejo/workflows/autoupdate.yml
This commit is contained in:
1 parent
e034704d95
commit
c826f04f49
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
name: autoupdate
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 */6 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Update manifest
|
||||
run: bash scripts/update-mornye.sh
|
||||
- name: Commit and push
|
||||
run: |
|
||||
git config user.name "autoupdate"
|
||||
git config user.email "[email protected]"
|
||||
if ! git diff --quiet; then
|
||||
git commit -am "mornye: update to $(jq -r .version bucket/mornye.json)"
|
||||
git push
|
||||
fi
|
||||
Reference in new issue
Block a user