mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 18:31:05 +00:00
ci: drop skip-if-draft job (#13961)
It's been effectively disabled for half a year already, and according to internal discussion we don't want it back.
This commit is contained in:
@@ -251,20 +251,6 @@ default:
|
|||||||
|
|
||||||
#### stage: .pre
|
#### stage: .pre
|
||||||
|
|
||||||
skip-if-draft:
|
|
||||||
extends: .kubernetes-env
|
|
||||||
variables:
|
|
||||||
CI_IMAGE: "paritytech/tools:latest"
|
|
||||||
stage: .pre
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
|
|
||||||
script:
|
|
||||||
- echo "Commit message is ${CI_COMMIT_MESSAGE}"
|
|
||||||
- echo "Ref is ${CI_COMMIT_REF_NAME}"
|
|
||||||
- echo "pipeline source is ${CI_PIPELINE_SOURCE}"
|
|
||||||
- ./scripts/ci/gitlab/skip_if_draft.sh
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
check-crates-publishing-pipeline:
|
check-crates-publishing-pipeline:
|
||||||
stage: .pre
|
stage: .pre
|
||||||
extends:
|
extends:
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/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
|
|
||||||
Reference in New Issue
Block a user