Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.53 KB

deb-packaging.README.md

File metadata and controls

41 lines (36 loc) · 1.53 KB

Debian Packaging GitHub Action

You can manually trigger a deb-packaging action on GitHub, e.g. to test changes:

  • push the changes to your fork of keymanapp/keyman: git push myfork HEAD:master

  • make sure you have GHA enabled in the settings of your fork and created an access token on GitHub

  • trigger a build with:

     curl --write-out '\n' --request POST \
      --header "Accept: application/vnd.github+json" \
      --header "Authorization: token $GITHUB_TOKEN" \
      --data "{ \"event_type\": \"deb-pr-packaging: master\", \
      \"client_payload\": { \
        \"buildSha\": \"$(git rev-parse refs/heads/master)\", \
        \"branch\": \"master\", \
        \"baseBranch\": \"master\",
        \"baseRef\": \"$(git rev-parse refs/heads/master^)\",
        \"user\": \"${USER}\",
        \"isTestBuild\": \"true\"}" \
      https://api.github.com/repos/<yourgithubname>/keyman/dispatches

    To trigger a build for PR #1234 in a branch pr-1234 this would look similar to this:

     curl --write-out '\n' --request POST \
      --header "Accept: application/vnd.github+json" \
      --header "Authorization: token $GITHUB_TOKEN" \
      --data "{ \"event_type\": \"deb-pr-packaging: PR #1234\", \
      \"client_payload\": { \
        \"buildSha\": \"$(git rev-parse refs/heads/pr-1234)\", \
        \"branch\": \"pr-1234\", \
        \"baseBranch\": \"master\",
        \"baseRef\": \"$(git rev-parse refs/heads/master)\",
        \"user\": \"${USER}\",
        \"isTestBuild\": \"true\"}" \
      https://api.github.com/repos/<yourgithubname>/keyman/dispatches