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
158
158
# This will be the file for the new release
159
159
NEW_CHANGE_NOTES_FILE=$( ls -t ./src/change-notes/released/* .md | head -n 1)
160
160
161
+ # Make a copy of the modified files
161
162
mv ./src/CHANGELOG.md ./src/CHANGELOG.md.dry-run
162
163
mv ./src/codeql-pack.release.yml ./src/codeql-pack.release.yml.dry-run
163
164
mv ./src/qlpack.yml ./src/qlpack.yml.dry-run
164
165
mv " $NEW_CHANGE_NOTES_FILE " ./src/change-notes/released.md.dry-run
165
166
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
169
174
git checkout " $CURRENT_BRANCH " --force
170
175
fi
171
176
You can’t perform that action at this time.
0 commit comments