Skip to content

Commit

Permalink
[uboot-asahi] autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Dec 3, 2024
1 parent 455e20f commit 0ab922c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
1 change: 0 additions & 1 deletion alarmcn/uboot-asahi/get_pkg.sh

This file was deleted.

13 changes: 13 additions & 0 deletions alarmcn/uboot-asahi/lilac.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python3

from lilaclib import *

def pre_build():
ver, rel = _G.newver.lstrip('asahi-v').split('-')
for line in edit_file('PKGBUILD'):
if line.startswith('_ver='):
line = f'_ver={ver}'
elif line.startswith('_asahirel='):
line = f'_asahirel={rel}'
print(line)
update_pkgver_and_pkgrel(pkgver)
14 changes: 5 additions & 9 deletions alarmcn/uboot-asahi/lilac.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
maintainers:
- github: yuyichao

# pre_build_script: run_cmd(['sh', './get_pkg.sh', 'uboot-asahi'])
post_build_script: |
git_add_files('.')
git_commit()
post_build: git_pkgbuild_commit

update_on:
- source: manual
manual: 2024.04.asahi1
# - source: github
# github: AsahiLinux/PKGBUILDs
# path: uboot-asahi
- source: github
github: AsahiLinux/asahi-scripts
use_max_tag: true
include_regex: asahi-v[^-]*-[^-]*
- source: manual
manual: 2

0 comments on commit 0ab922c

Please sign in to comment.