From 1d06d6c40fa848dd0a9b23e969f9233af4775d6f Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 26 Sep 2021 08:50:35 +0530 Subject: chore: tag the 'recipes' submodule when tagging the main repo - to help identify which changes got included into which build. [skip ci] --- .github/workflows/ferdi-builds.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml index 8bf9e69cf..851eb021a 100644 --- a/.github/workflows/ferdi-builds.yml +++ b/.github/workflows/ferdi-builds.yml @@ -57,12 +57,17 @@ jobs: MANUAL_REBUILD="${{ github.event_name == 'workflow_dispatch' }}" VERSION_BUMP="${{ contains(github.event.inputs.message, '[version bump]') }}" if [ $CHANGES_COUNT -gt 0 ] || [[ $MANUAL_REBUILD == "true" && $VERSION_BUMP == "true" ]]; then - # Do the version bump in the 'develop' branch ONLY if there were other changes coming from the 'develop' branch + # Do the version bump in the 'develop' branch ONLY if + # there were other changes coming from the 'develop' branch (or) + # this is a manual trigger with the key-phrase git checkout develop TAG_NAME=$(npm version -m "%s [skip ci]" prerelease --preid=nightly) git push origin develop --no-verify git tag -f $TAG_NAME git push origin --tags --no-verify + # Also tag the submodule so as to help identify which changes went into which nightly release + git -C recipes tag -f $TAG_NAME + git -C recipes push origin --tags --no-verify git checkout nightly fi -- cgit v1.2.3-54-g00ecf