From cb8867a0ff1bffb3acefbc9763f7c9e9b23f4b68 Mon Sep 17 00:00:00 2001 From: Jingbei Li Date: Wed, 8 May 2024 23:10:16 +0800 Subject: [PATCH] make clean up ubuntu an option --- .github/workflows/build.yml | 5 +++++ process-update.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad9a31c..bf2b8c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ on: required: true pkgver: required: true + clean-up-ubuntu: + required: false + type: boolean + default: false jobs: @@ -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 diff --git a/process-update.py b/process-update.py index c310c07..e8ca4a0 100644 --- a/process-update.py +++ b/process-update.py @@ -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.")