Skip to content

Masquerade ephemeral runners as non-ephemeral ones #6545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,18 @@ get_labels_from_config() {
esac
shift
done
echo $target | sed 's/,/\n/g'

set +e
# Masquerade an ephemeral runner as a non-ephemeral one
for label in $(echo $target | sed 's/,/ /g')
do
echo $label
if [[ $label == *ephemeral.* ]]; then
label_wo_ephemeral=$(echo $label | sed 's/ephemeral.//g')
echo $label_wo_ephemeral
fi
done
set -e
}

cd /home/$USER_NAME
Expand Down
Loading