Added workflow for building snapcraft

https://github.com/ruby/snap.ruby/actions/runs/10189575392/job/28187867439
This commit is contained in:
Hiroshi SHIBATA 2024-08-01 09:19:42 +09:00
parent e935366fe8
commit 9ed7e06a27
Notes: git 2024-08-01 05:38:51 +00:00

View File

@ -53,3 +53,12 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ruby/docker-images/dispatches \
-d '{"event_type": "build", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}", "arch": "amd64", "latest": "${{ env.LATEST }}"}}'
- name: Build snapcraft packages
run: |
curl -L -X POST \
-H "Authorization: Bearer ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ruby/snap.ruby/dispatches \
-d '{"event_type": "build", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}"}}'