From 8da4e8874274c38bea58a5a0f0823266704ecaef Mon Sep 17 00:00:00 2001 From: Vladimir Ischenko Date: Mon, 23 Dec 2024 07:19:20 +0000 Subject: [PATCH] Add OCI trigger activation for workflow changes (#115) Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/DocSpace-buildtools/pulls/115 Reviewed-by: Evgeniy Antonyuk Co-authored-by: Vladimir Ischenko Co-committed-by: Vladimir Ischenko --- .github/workflows/build_packages.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_packages.yml b/.github/workflows/build_packages.yml index a4bc190c16..899dad4b40 100644 --- a/.github/workflows/build_packages.yml +++ b/.github/workflows/build_packages.yml @@ -52,6 +52,7 @@ jobs: runs-on: ubuntu-22.04 outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} + build_all: ${{ steps.changes.outputs.build_all }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -224,12 +225,15 @@ jobs: trigger_oci: name: Trigger ci-oci-install Workflow - needs: build + needs: [prepare, build] runs-on: ubuntu-22.04 if: ${{ success() }} steps: - name: Trigger CI-OCI-Install Workflow run: | + deb_build="${{ github.event.inputs.deb_build }}" + rpm_build="${{ github.event.inputs.rpm_build }}" + [[ "${{ needs.prepare.outputs.build_all }}" == "true" ]] && deb_build="true" && rpm_build="true" curl \ -X POST \ -u "${{ secrets.USERNAME}}:${{secrets.TOKEN}}" \ @@ -238,8 +242,8 @@ jobs: --data '{ "ref": "'"${{ github.ref_name }}"'", "inputs": { - "deb_build": "'"${{ github.event.inputs.deb_build }}"'", - "rpm_build": "'"${{ github.event.inputs.rpm_build }}"'" + "deb_build": "'"${deb_build}"'", + "rpm_build": "'"${rpm_build}"'" } }'