Skip to content

Commit 8a9eedf

Browse files
authored
actions: skip version bump when git push fails due to forked pull request (#516)
1 parent f4fbd4b commit 8a9eedf

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# [1.4.13](https://github.com/kenherring/ablunit-test-runner/releases/tag/1.4.13) - 2026-03-21 (pre-release)
1+
# [1.4.15](https://github.com/kenherring/ablunit-test-runner/releases/tag/1.4.15) - 2026-03-21 (pre-release)
22

3+
* actions: skip version bump when git push fails due to forked pull request (#516)
34
* Revert "actions: checkout without secret token (#515)" (#517)
45
* actions: checkout without secret token (#515)
56
* Improve github actions logging with grouping (#503)
@@ -29,7 +30,7 @@
2930
* Bump esbuild from 0.27.0 to 0.27.1 (#457)
3031
* Bump jws from 3.2.2 to 3.2.3 in the npm_and_yarn group across 1 directory (#455)
3132

32-
**Full Changelog**: [1.4.4...1.4.13](https://github.com/kenherring/ablunit-test-runner/compare/1.4.11...1.4.13)
33+
**Full Changelog**: [1.4.4...1.4.15](https://github.com/kenherring/ablunit-test-runner/compare/1.4.13...1.4.15)
3334

3435
# [1.4.4](https://github.com/kenherring/ablunit-test-runner/releases/tag/1.4.4) - 2025-11-26 (pre-release)
3536

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ablunit-test-runner",
33
"displayName": "ABLUnit Test Runner",
44
"description": "OpenEdge ABLUnit test runner for VSCode",
5-
"version": "1.4.13",
5+
"version": "1.4.15",
66
"engineStrict": true,
77
"galleryBanner": {
88
"color": "#007ACC",

scripts/bump_version.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ bump_prerelease_version () {
5353
log_it "bumping version to $BUMP_TO_VERSION"
5454

5555
npm version "$BUMP_TO_VERSION" --no-tag-git-version -m "Bump version to prerelease %s"
56-
git push
56+
57+
if ! git push; then
58+
## ignore failures as these might be from forks usually...
59+
EXIT_CODE=$?
60+
log_error "failed to push branch $CIRCLE_BRANCH, exit_code=$EXIT_CODE"
61+
# exit $EXIT_CODE
62+
exit 0
63+
fi
5764

5865
log_error "pushed branch $CIRCLE_BRANCH, exit_code=1"
5966
exit 1

0 commit comments

Comments
 (0)