mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-25 17:49:31 +01:00
Move base checkout into loop
This commit is contained in:
parent
89849aa1e8
commit
314c329137
1 changed files with 3 additions and 2 deletions
|
@ -8,14 +8,15 @@ if ! git diff-index --quiet HEAD; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
base=$(git rev-parse HEAD)
|
base=$(git rev-parse HEAD)
|
||||||
git checkout --quiet "$base"
|
|
||||||
|
|
||||||
for rev in 1.{0..70}.0 stable beta nightly; do
|
for rev in 1.{0..70}.0 stable beta nightly; do
|
||||||
echo "Updating $rev branch"
|
echo "Updating $rev branch"
|
||||||
|
git checkout --quiet "$base"
|
||||||
git branch --quiet --delete --force $rev &>/dev/null || true
|
git branch --quiet --delete --force $rev &>/dev/null || true
|
||||||
sed -i "s/required: true/required: false\n default: $rev/" action.yml
|
sed -i "s/required: true/required: false\n default: $rev/" action.yml
|
||||||
git add action.yml
|
git add action.yml
|
||||||
git commit --quiet --message "toolchain: $rev"
|
git commit --quiet --message "toolchain: $rev"
|
||||||
git checkout --quiet -b $rev
|
git checkout --quiet -b $rev
|
||||||
git checkout --quiet "$base"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
git checkout --quiet "$base"
|
||||||
|
|
Loading…
Reference in a new issue