Skip to content

Commit

Permalink
Update cron-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Dec 14, 2024
1 parent 38a970b commit 93e22b0
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/cron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,36 @@ jobs:
echo "build_deb=$(echo "${CHANGED_FILES}" | grep -qE '^install/common/|^install/deb/' && echo true || echo false)" >> $GITHUB_OUTPUT
echo "build_rpm=$(echo "${CHANGED_FILES}" | grep -qE '^install/common/|^install/rpm/' && echo true || echo false)" >> $GITHUB_OUTPUT
- name: Debug JSON
run: |
branches_json=${{ steps.list-branches.outputs.json_output }}
echo "$(cat <<EOF
{
"ref": "feature/cron-build-oci",
"inputs": {
"branches": $branches_json
}
}
EOF
)"
- name: Dispatch Action main build
run: |
branches_json=${{ steps.list-branches.outputs.json_output }}
curl \
-X POST \
-u "${{ secrets.USERNAME }}:${{ secrets.TOKEN }}" \
"https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/actions/workflows/75421046/dispatches" \
-H "Accept: application/vnd.github+json" \
--data "{
\"ref\": \"${{ github.ref_name }}\",
\"inputs\": {
\"branches\": \"${{ steps.list-branches.outputs.json_output }}\"
}
}"
--data "$(cat <<EOF
{
"ref": "feature/cron-build-oci",
"inputs": {
"branches": $branches_json
}
}
EOF
)"
- name: Dispatch Action build packages
if: ${{ github.event_name == 'schedule' && steps.priority.outputs.target_branch != '' && (steps.changes.outputs.build_deb == 'true' || steps.changes.outputs.build_rpm == 'true') }}
Expand Down

0 comments on commit 93e22b0

Please sign in to comment.