File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,19 @@ popd
158158# This will be the file for the new release
159159NEW_CHANGE_NOTES_FILE=$( ls -t ./src/change-notes/released/* .md | head -n 1)
160160
161+ # Make a copy of the modified files
161162mv ./src/CHANGELOG.md ./src/CHANGELOG.md.dry-run
162163mv ./src/codeql-pack.release.yml ./src/codeql-pack.release.yml.dry-run
163164mv ./src/qlpack.yml ./src/qlpack.yml.dry-run
164165mv " $NEW_CHANGE_NOTES_FILE " ./src/change-notes/released.md.dry-run
165166
166- # If --override-release was not specified, then we need to checkout the original branch
167- if [ $OVERRIDE_RELEASE != 1 ]; then
168- echo " Checking out the original branch"
167+ if [ $OVERRIDE_RELEASE = 1 ]; then
168+ # Restore the original files
169+ git checkout ./src/CHANGELOG.md
170+ git checkout ./src/codeql-pack.release.yml
171+ git checkout ./src/qlpack.yml
172+ else
173+ # Restore the original files
169174 git checkout " $CURRENT_BRANCH " --force
170175fi
171176
You can’t perform that action at this time.
0 commit comments