Skip to content

Commit

Permalink
make clean up ubuntu an option
Browse files Browse the repository at this point in the history
  • Loading branch information
petronny committed May 8, 2024
1 parent add3945 commit cb8867a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
required: true
pkgver:
required: true
clean-up-ubuntu:
required: false
type: boolean
default: false

jobs:

Expand All @@ -30,6 +34,7 @@ jobs:
run: pacman -S --noconfirm --needed arch-install-scripts base-devel devtools dbus git pacman-contrib

- uses: arch4edu/cactus/actions/clean-up-ubuntu@main
if: ${{ github.event.inputs.clean-up-ubuntu == 'true' }}

- uses: actions/checkout@master

Expand Down
3 changes: 2 additions & 1 deletion process-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
print(f"{package} doesn't exist on AUR.")
continue
if test:
github.get_repo('arch4edu/aur-auto-update').get_workflow("build.yml").create_dispatch('main', {'pkgbase': package, 'pkgver': version})
clean = 'false' if not "clean-up-ubuntu" in config["test"] else config["test"]["clean-up-ubuntu"]
github.get_repo('arch4edu/aur-auto-update').get_workflow("build.yml").create_dispatch('main', {'pkgbase': package, 'pkgver': version, 'clean-up-ubuntu': clean})
print(f"Triggered build test for {package} {version}.")
elif flag:
print(f"TODO: Flag {package} on AUR.")
Expand Down

0 comments on commit cb8867a

Please sign in to comment.