Unused
This commit is contained in:
parent
f280a99559
commit
db8950fa34
65
.github/unused/sh/trigger.sh
vendored
Normal file
65
.github/unused/sh/trigger.sh
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
curl -L \
|
||||||
|
-X POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: Bearer <YOUR-TOKEN>"\
|
||||||
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
|
https://api.github.com/repos/OWNER/REPO/actions/workflows/WORKFLOW_ID/dispatches \
|
||||||
|
-d '{"ref":"main","inputs":{"image":"${{ inputs.image }}","tag":"${{ inputs.tag }}"}}';
|
||||||
|
|
||||||
|
repo2.hub.gmetri.io/dt-api
|
||||||
|
main-fda468af
|
||||||
|
|
||||||
|
Token (DUMMY): e139b1c73bfae1b7748961c9f9a381bd3cca0633
|
||||||
|
|
||||||
|
|
||||||
|
https://git.gmetri.io/gmetrivr/cs-dt/actions/run?workflow=update-repo-version.yml&actor=0&status=
|
||||||
|
|
||||||
|
curl -X 'POST' \
|
||||||
|
'https://git.gmetri.io/api/v1/repos/gmetrivr/cs-dt/issues' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Authorization: token e139b1c73bfae1b7748961c9f9a381bd3cca0633' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{
|
||||||
|
"assignee": "bot-build",
|
||||||
|
"body": "{\"image\":\"repo2.hub.gmetri.io/dt-api\",\"tag\":\"main-fda468af\"}",
|
||||||
|
"closed": false,
|
||||||
|
"title": "cs-dt package for repo2.hub.gmetri.io/dt-api:main-fda468af"
|
||||||
|
}'
|
||||||
|
|
||||||
|
curl -X 'POST' \
|
||||||
|
'https://git.gmetri.io/api/v1/repos/gmetrivr/cs-dt/issues/1/comments' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-H 'Authorization: token e139b1c73bfae1b7748961c9f9a381bd3cca0633' \
|
||||||
|
-d '{
|
||||||
|
"body": "{\"image\":\"repo2.hub.gmetri.io/dt-api\",\"tag\":\"main-fda468af\"}"
|
||||||
|
}'
|
||||||
|
|
||||||
|
curl -X 'POST' \
|
||||||
|
'https://git.gmetri.io/api/v1/repos/gmetrivr/cs-dt/issues/1/comments' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Authorization: token e139b1c73bfae1b7748961c9f9a381bd3cca0633' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{
|
||||||
|
"body": "{\"image\":\"repo2.hub.gmetri.io\/dt-api\",\"tag\":\"main-255c2f30\"}"
|
||||||
|
}'
|
||||||
|
|
||||||
|
ISSUE_COMMENT_STRING=`echo '{ "image": "repo2.hub.gmetri.io/dt-api", "tag": "main-255c2f30" }' | jq tostring`
|
||||||
|
API_JSON_BODY=`echo '{"body": '$ISSUE_COMMENT_STRING' }' | jq -r tostring`
|
||||||
|
# {"body":"{\"image\":\"repo2.hub.gmetri.io/dt-api\",\"tag\":\"main-255c2f30\"}"}
|
||||||
|
|
||||||
|
curl -X 'POST' \
|
||||||
|
'https://git.gmetri.io/api/v1/repos/gmetrivr/cs-dt/issues/1/comments' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Authorization: token e139b1c73bfae1b7748961c9f9a381bd3cca0633' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d $API_JSON_BODY
|
||||||
|
|
||||||
|
curl -X 'POST' \
|
||||||
|
'https://git.gmetri.io/api/v1/repos/gmetrivr/cs-dt/issues/1/comments' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Authorization: token e139b1c73bfae1b7748961c9f9a381bd3cca0633' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{"body":"{\"image\":\"repo2.hub.gmetri.io/dt-api\",\"tag\":\"main-255c2f30\"}"}'
|
||||||
Loading…
x
Reference in New Issue
Block a user