mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Remove should-skip-this.sh
This commit is contained in:
parent
e25735908f
commit
246ee53637
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -94,9 +94,6 @@ jobs:
|
||||
env:
|
||||
EXTRA_VARIABLES: "${{ toJson(matrix.env) }}"
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: decide whether to skip this job
|
||||
run: src/ci/scripts/should-skip-this.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: ensure the channel matches the target branch
|
||||
run: src/ci/scripts/verify-channel.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
|
@ -163,10 +163,6 @@ x--expand-yaml-anchors--remove:
|
||||
EXTRA_VARIABLES: ${{ toJson(matrix.env) }}
|
||||
<<: *step
|
||||
|
||||
- name: decide whether to skip this job
|
||||
run: src/ci/scripts/should-skip-this.sh
|
||||
<<: *step
|
||||
|
||||
- name: ensure the channel matches the target branch
|
||||
run: src/ci/scripts/verify-channel.sh
|
||||
<<: *step
|
||||
|
@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Set the SKIP_JOB environment variable if this job is not supposed to run on the current builder.
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
|
||||
|
||||
if [[ -n "${CI_ONLY_WHEN_CHANNEL-}" ]]; then
|
||||
if [[ "${CI_ONLY_WHEN_CHANNEL}" = "$(cat src/ci/channel)" ]]; then
|
||||
echo "The channel is the expected one"
|
||||
else
|
||||
echo "Not executing this job as the channel is not the expected one"
|
||||
ciCommandSetEnv SKIP_JOB 1
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
echo "Executing the job since there is no skip rule preventing the execution"
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user