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 f6cdede commit 9ef017c
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/cron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,25 @@ jobs:
- name: Dispatch Action main build
run: |
branches_json='${{ steps.list-branches.outputs.json_output }}'
json_payload=$(jq -n \
--arg ref "feature/cron-build-oci" \
--arg branches "$branches_json" \
'{
ref: $ref,
inputs: {
branches: $branches
}
}')
echo "Payload for curl:"
echo "$json_payload" | jq .
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 "$(cat <<EOF
{
"ref": "feature/cron-build-oci",
"inputs": {
"branches": \"$branches_json\"
}
}
EOF
)"
-H "Content-Type: application/json" \
--data "$json_payload"

- 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 9ef017c

Please sign in to comment.