From 243df375803f34d56f60eb2c682bb2af4a0961af Mon Sep 17 00:00:00 2001 From: Vijay A Date: Thu, 1 Jul 2021 12:24:54 +0530 Subject: Fixed issue with hard-coded branch name in the 'git push' command. [skip ci] --- .github/workflows/ferdi-builds.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml index 399b3c7ea..c2c253011 100644 --- a/.github/workflows/ferdi-builds.yml +++ b/.github/workflows/ferdi-builds.yml @@ -60,15 +60,14 @@ jobs: if [ $CHANGES_COUNT -eq 0 ] && [ $MANUAL_REBUILD != "true" ]; then echo "No changes found - terminating the build" echo "::set-output name=should_run::false" - else - # changes > 0 (or) MANUAL_REBUILD=true + else # changes > 0 (or) MANUAL_REBUILD=true if [ $MANUAL_REBUILD != "true" ] || [ "${{ contains(github.event.inputs.message, 'version bump') }}" == "true" ]; then echo "Bumping version number" npm version prerelease --preid=nightly fi - echo "Pushing merge, linter, submodule and version-bump commits" - git push origin nightly --no-verify + echo "Pushing merge and version-bump commits" + git push origin $(git rev-parse --abbrev-ref HEAD) --no-verify fi build_mac: -- cgit v1.2.3-54-g00ecf