Skip to content

Commit

Permalink
Add OCI trigger activation for workflow changes (#115)
Browse files Browse the repository at this point in the history
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/DocSpace-buildtools/pulls/115
Reviewed-by: Evgeniy Antonyuk <[email protected]>
Co-authored-by: Vladimir Ischenko <[email protected]>
Co-committed-by: Vladimir Ischenko <[email protected]>
  • Loading branch information
isboston authored and evgeniy-antonyuk committed Dec 23, 2024
1 parent a4ae9b6 commit 8da4e88
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}}" \
Expand All @@ -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}"'"
}
}'

0 comments on commit 8da4e88

Please sign in to comment.