mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 02:57:57 +00:00
46891e849f
Move scripts used in CI to the new location - **./scripts/ci/** * Move github scripts * Move more files * Move ci scripts and fix dependencies * Update docs/node-template-release.md Co-authored-by: João Paulo Silva de Souza <77391175+joao-paulo-parity@users.noreply.github.com> * Remove Cargo.lock * Apply suggestions from code review Co-authored-by: Denis Pisarev <denis.pisarev@parity.io> * Make more paths uniform Co-authored-by: João Paulo Silva de Souza <77391175+joao-paulo-parity@users.noreply.github.com> Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>
15 lines
424 B
Bash
Executable File
15 lines
424 B
Bash
Executable File
#!/bin/sh
|
|
url="https://api.github.com/repos/paritytech/substrate/pulls/${CI_COMMIT_REF_NAME}"
|
|
echo "[+] API URL: $url"
|
|
|
|
draft_state=$(curl -H "Authorization: token ${GITHUB_PR_TOKEN}" "$url" | jq -r .draft)
|
|
echo "[+] Draft state: $draft_state"
|
|
|
|
if [ "$draft_state" = 'true' ]; then
|
|
echo "[!] PR is currently a draft, stopping pipeline"
|
|
exit 1
|
|
else
|
|
echo "[+] PR is not a draft. Proceeding with CI pipeline"
|
|
exit 0
|
|
fi
|