fixing print in shell script and updating string interpolation in python script

This commit is contained in:
Drew Taylor 2021-09-16 23:00:30 -07:00 committed by Trent Nelson
parent cf4358715b
commit 1fa8b6b966
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ echo --- "(FAILING) Backpropagating dependabot-triggered Cargo.lock updates"
name="dependabot-buildkite"
api_base="https://api.github.com/repos/solana-labs/solana/pulls"
pr_num=$(echo "$BUILDKITE_BRANCH" | grep -Eo '[0-9]+')
branch=$(curl -s "$api_base/$pr_num" | python3 -c 'import json,sys;print json.load(sys.stdin)["head"]["ref"]')
branch=$(curl -s "$api_base/$pr_num" | python3 -c 'import json,sys;print(json.load(sys.stdin)["head"]["ref"])')
git add :**/Cargo.lock
EMAIL="dependabot-buildkite@noreply.solana.com" \

View File

@ -11,7 +11,7 @@ stages_to_counters = {}
stages_to_time = {}
if len(sys.argv) != 2:
print("USAGE: {} <input file>".format(sys.argv[0]))
print(f"USAGE: {sys.argv[0]} <input file>")
sys.exit(1)
with open(sys.argv[1]) as fh: