Skip to content

Commit

Permalink
Update build_packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Dec 21, 2024
1 parent 75a72c2 commit 9c47fa3
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,13 @@ jobs:
id: changes
run: |
git fetch --no-tags --prune --depth=2
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD || true)
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD)
echo "$CHANGED_FILES"
if echo "$CHANGED_FILES" | grep -qE '^.github/workflows/build_packages.yml'; then
echo "build_all=true" >> $GITHUB_OUTPUT
else
echo "build_all=false" >> $GITHUB_OUTPUT
fi
echo ">>> OUTPUT CONTENT <<<"
cat $GITHUB_OUTPUT
- name: Verify build_all
run: |
cat $GITHUB_OUTPUT
Expand Down Expand Up @@ -116,7 +113,7 @@ jobs:
trigger_oci:
name: Trigger ci-oci-install Workflow
needs: build
needs: [prepare, build]
runs-on: ubuntu-22.04
if: ${{ success() }}
steps:
Expand All @@ -128,16 +125,16 @@ jobs:
[[ "${{ needs.prepare.outputs.build_all }}" == "true" ]] && deb_build="true" && rpm_build="true"
echo "deb_build: $deb_build"
echo "rpm_build: $rpm_build"
# curl \
# -X POST \
# -u "${{ secrets.USERNAME}}:${{secrets.TOKEN}}" \
# https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/actions/workflows/85067971/dispatches \
# -H "Accept: application/vnd.github.everest-preview+json" \
# --data '{
# "ref": "'"${{ github.ref_name }}"'",
# "inputs": {
# "deb_build": "'"${deb_build}"'",
# "rpm_build": "'"${rpm_build}"'"
# }
# }'
curl \
-X POST \
-u "${{ secrets.USERNAME}}:${{secrets.TOKEN}}" \
https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/actions/workflows/85067971/dispatches \
-H "Accept: application/vnd.github.everest-preview+json" \
--data '{
"ref": "'"${{ github.ref_name }}"'",
"inputs": {
"deb_build": "'"${deb_build}"'",
"rpm_build": "'"${rpm_build}"'"
}
}'

0 comments on commit 9c47fa3

Please sign in to comment.