-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
714acd2
commit 8c8eb9a
Showing
1 changed file
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,30 @@ jobs: | |
ref: ${{ github.event.release.target_commitish }} | ||
fetch-depth: 0 | ||
|
||
- name: Check if new version implies pre-release | ||
id: check_prerelease | ||
run: | | ||
if [[ ${{github.event.release.prerelease}} == "true" ]]; then | ||
PRE_RELEASE=true | ||
elif [[ ${{ github.event.release.tag_name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
PRE_RELEASE=false | ||
else | ||
PRE_RELEASE=true | ||
fi | ||
echo "isPreRelease=${PRE_RELEASE}" >> $GITHUB_OUTPUT | ||
- name: Get previous tag for changelog | ||
id: get_previous_tag | ||
run: | | ||
git pull --tags | ||
if [[ ${{steps.check_prerelease.outputs.isPreRelease}} == "true" ]]; then | ||
TAG_NAME=$(git --no-pager tag --sort=-creatordate | head -2 | tail -1) | ||
else | ||
TAG_NAME=$(git --no-pager tag --sort=-creatordate | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -2 | tail -1) | ||
fi | ||
echo "previousTag: $TAG_NAME" | ||
echo "previousTag=${TAG_NAME}" >> $GITHUB_OUTPUT | ||
- name: Import Secrets | ||
id: secrets | ||
uses: hashicorp/[email protected] | ||
|
@@ -83,29 +107,6 @@ jobs: | |
- name: Install element templates CLI | ||
run: npm install --global element-templates-cli | ||
|
||
- name: Check if new version implies pre-release | ||
id: check_prerelease | ||
run: | | ||
if [[ ${{github.event.release.prerelease}} == "true" ]]; then | ||
PRE_RELEASE=true | ||
elif [[ ${{ github.event.release.tag_name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
PRE_RELEASE=false | ||
else | ||
PRE_RELEASE=true | ||
fi | ||
echo "isPreRelease=${PRE_RELEASE}" >> $GITHUB_OUTPUT | ||
- name: Get previous tag for changelog | ||
id: get_previous_tag | ||
run: | | ||
if [[ ${{steps.check_prerelease.outputs.isPreRelease}} == "true" ]]; then | ||
TAG_NAME=$(git --no-pager tag --sort=-creatordate | head -2 | tail -1) | ||
else | ||
TAG_NAME=$(git --no-pager tag --sort=-creatordate | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -2 | tail -1) | ||
fi | ||
echo "previousTag: $TAG_NAME" | ||
echo "previousTag=${TAG_NAME}" >> $GITHUB_OUTPUT | ||
# Maven build & version bump | ||
|
||
- name: Set Connectors release version | ||
|