-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from reportportal/develop
Release
- Loading branch information
Showing
2 changed files
with
17 additions
and
16 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 |
---|---|---|
|
@@ -68,12 +68,12 @@ jobs: | |
name: 'reportportal.io' | ||
email: '[email protected]' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Tagging new version | ||
id: newVersionTag | ||
run: | | ||
git tag -a ${{ env.RELEASE_VERSION }} -m "Release ${{ env.RELEASE_VERSION }}" | ||
git push --tags | ||
# | ||
# - name: Tagging new version | ||
# id: newVersionTag | ||
# run: | | ||
# git tag -a ${{ env.RELEASE_VERSION }} -m "Release ${{ env.RELEASE_VERSION }}" | ||
# git push --tags | ||
|
||
- name: Checkout develop branch | ||
uses: actions/checkout@v4 | ||
|
@@ -108,20 +108,20 @@ jobs: | |
version: ${{ env.RELEASE_VERSION }} | ||
path: ./${{ env.CHANGE_LOG_FILE }} | ||
|
||
- name: Create Release | ||
id: createRelease | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ env.RELEASE_VERSION }} | ||
name: Release ${{ env.RELEASE_VERSION }} | ||
body: ${{ steps.readChangelogEntry.outputs.changes }} | ||
# - name: Create Release | ||
# id: createRelease | ||
# uses: ncipollo/release-action@v1 | ||
# with: | ||
# tag: ${{ env.RELEASE_VERSION }} | ||
# name: Release ${{ env.RELEASE_VERSION }} | ||
# body: ${{ steps.readChangelogEntry.outputs.changes }} | ||
|
||
- name: Update version file | ||
id: versionFileUpdate | ||
run: | | ||
export CURRENT_VERSION_VALUE=`echo '${{ env.CURRENT_VERSION }}' | sed -E "s/(.*)/${{ env.VERSION_REPLACE_PATTERN }}/"` | ||
export NEXT_VERSION_VALUE=`echo '${{ env.NEXT_VERSION }}' | sed -E "s/(.*)/${{ env.VERSION_REPLACE_PATTERN }}/"` | ||
sed "s/${CURRENT_VERSION_VALUE}/${NEXT_VERSION_VALUE}/g" ${{ env.VERSION_FILE }} > ${{ env.VERSION_FILE }}${{ env.TMP_SUFFIX }} | ||
export CURRENT_VERSION_VALUE=`echo '${{ env.CURRENT_VERSION }}' | sed -E 's/(.*)/${{ env.VERSION_REPLACE_PATTERN }}/'` | ||
export NEXT_VERSION_VALUE=`echo '${{ env.NEXT_VERSION }}' | sed -E 's/(.*)/${{ env.VERSION_REPLACE_PATTERN }}/'` | ||
sed 's/${CURRENT_VERSION_VALUE}/${NEXT_VERSION_VALUE}/g' ${{ env.VERSION_FILE }} > ${{ env.VERSION_FILE }}${{ env.TMP_SUFFIX }} | ||
rm ${{ env.VERSION_FILE }} | ||
mv ${{ env.VERSION_FILE }}${{ env.TMP_SUFFIX }} ${{ env.VERSION_FILE }} | ||
git add ${{ env.VERSION_FILE }} | ||
|
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