Skip to content

Commit ebf0a06

Browse files
guangy10facebook-github-bot
authored andcommitted
Fix release script (#2736)
Summary: Pull Request resolved: #2736 imported-using-ghimport Test Plan: Imported from OSS Reviewed By: Gasoonjia Differential Revision: D55458620 Pulled By: guangy10 fbshipit-source-id: 240c02d4ca95792c9878d1f19d13abb2810dd53c
1 parent 4de53bd commit ebf0a06

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/release/apply-release-changes.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
# Creates PR with release only changes.
1212
#
1313
# Usage (run from root of project):
14-
# DRY_RUN=disabled ./scripts/release/apply-release-changes.sh
14+
# TEST_INFRA_BRANCH=release/2.3 ./scripts/release/apply-release-changes.sh
1515
#
16-
# RELEASE_VERSION: Version of this current release
16+
# TEST_INFRA_BRANCH: The release branch of test-infra that houses all reusable
1717
'
1818

1919
set -eou pipefail
@@ -37,11 +37,11 @@ fi
3737
echo "Applying release-only changes to workflows"
3838
for i in .github/workflows/*.yml; do
3939
if [[ "$OSTYPE" == "darwin"* ]]; then
40-
sed -i '' -e s#@main#@"${RELEASE_BRANCH}"# $i;
41-
sed -i '' -e s#test-infra-ref:[[:space:]]main#"test-infra-ref: ${RELEASE_BRANCH}"# $i;
40+
sed -i '' -e s#@main#@"${TEST_INFRA_BRANCH}"# $i;
41+
sed -i '' -e s#test-infra-ref:[[:space:]]main#"test-infra-ref: ${TEST_INFRA_BRANCH}"# $i;
4242
else
43-
sed -i -e s#@main#@"${RELEASE_BRANCH}"# $i;
44-
sed -i -e s#test-infra-ref:[[:space:]]main#"test-infra-ref: ${RELEASE_BRANCH}"# $i;
43+
sed -i -e s#@main#@"${TEST_INFRA_BRANCH}"# $i;
44+
sed -i -e s#test-infra-ref:[[:space:]]main#"test-infra-ref: ${TEST_INFRA_BRANCH}"# $i;
4545
fi
4646
done
4747

0 commit comments

Comments
 (0)