From f5cf313d1c3aee81e194127acc015a794f7846d5 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 20 Oct 2022 19:43:33 +0800 Subject: [PATCH] Improve autoupdate pipeline --- .github/workflows/autobuild.yml | 2 +- .github/workflows/update.yml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index c8c6c120fe..73bfa7df54 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -2,13 +2,13 @@ # generate a new workflow for each folder in anda/ name: Automatically build packages on: - push: paths: - anda/** branches: - main workflow_dispatch: + workflow_call: jobs: manifest: diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index f5641966ea..7fddcb581d 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: jobs: - get-chkupdate-scripts: + autoupdate: runs-on: ubuntu-latest container: image: registry.fedoraproject.org/fedora:37 @@ -32,4 +32,9 @@ jobs: git config user.email "<>" git commit -a -m "Automatic Update" git push -u origin main + echo "updated=1" > $GITHUB_ENV fi + + - name: Autobuild + if: ${{ steps.save.outputs.updated }} + uses: terrapkg/packages/.github/workflows/autobuild.yml@manifest