@@ -8,20 +8,20 @@ set -euo pipefail
88git switch -c cursorless-talon-staging origin/cursorless-talon-staging
99
1010# Exit if there were no changes to the cursorless-talon directory
11- [[ " $( git rev-parse $ GITHUB_SHA :cursorless-talon) " == " $( git rev-parse cursorless-talon-staging^{tree}) " ]] && exit 0
11+ [[ " $( git rev-parse " ${ GITHUB_SHA} :cursorless-talon" ) " == " $( git rev-parse ' cursorless-talon-staging^{tree}' ) " ]] && exit 0
1212
1313# Fetch current cursorless-talon main
1414git remote add cursorless-talon ' https://github.com/cursorless-dev/cursorless-talon.git'
1515git fetch cursorless-talon
1616
1717# Sanity check that cursorless-talon/main is identical to cursorless-talon-staging
18- [[ " $( git rev-parse cursorless-talon/main^{tree}) " == " $( git rev-parse cursorless-talon-staging^{tree}) " ]]
18+ [[ " $( git rev-parse ' cursorless-talon/main^{tree}' ) " == " $( git rev-parse ' cursorless-talon-staging^{tree}' ) " ]]
1919
2020# Tag previous version of staging branch
2121git tag cursorless-talon-staging-previous cursorless-talon-staging
2222
2323# Update the staging branch
24- git switch -c github-sha $GITHUB_SHA
24+ git switch -c github-sha " $GITHUB_SHA "
2525git subtree split --prefix=cursorless-talon --branch=cursorless-talon-staging
2626
2727# Sanity check that the previous staging commit is an ancestor of the new one
@@ -32,11 +32,11 @@ git switch -c cursorless-talon-main cursorless-talon/main
3232git cherry-pick cursorless-talon-staging-previous..cursorless-talon-staging
3333
3434# Sanity check that cursorless-talon-main is identical to cursorless-talon-staging
35- [[ " $( git rev-parse cursorless-talon-main^{tree}) " == " $( git rev-parse cursorless-talon-staging^{tree}) " ]]
35+ [[ " $( git rev-parse ' cursorless-talon-main^{tree}' ) " == " $( git rev-parse ' cursorless-talon-staging^{tree}' ) " ]]
3636
3737# Sanity check that cursorless-talon-main is identical to cursorless-talon
3838# subdirectory of cursorless-vscode
39- [[ " $( git rev-parse cursorless-talon-main^{tree}) " == " $( git rev-parse $ GITHUB_SHA :cursorless-talon) " ]]
39+ [[ " $( git rev-parse ' cursorless-talon-main^{tree}' ) " == " $( git rev-parse " ${ GITHUB_SHA} :cursorless-talon" ) " ]]
4040
4141# Push to cursorless-talon
4242git push cursorless-talon cursorless-talon-main:main
0 commit comments