Skip to content

Commit

Permalink
Merge tag '2.1.2' into develop
Browse files Browse the repository at this point in the history
v2.1.2

Fixed
- Fix the release version body and name (c5319ee)
  • Loading branch information
titouanmathis committed Dec 7, 2020
2 parents aedc458 + 7c6900b commit 9c476c5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
- name: Prepare the changelog from the tag message
id: prepare_changelog
run: |
# Parse version
VERSION=${GITHUB_REF/refs\/tags\//}
echo "Setting release version to $VERSION"
echo "release_version=$VERSION" >> $GITHUB_ENV
# Parse tag message
CHANGELOG=$(git tag -l --format='%(contents)' $GITHUB_REF | tail -n+3)
Expand All @@ -38,6 +43,13 @@ jobs:
# Remove PGP signature
CHANGELOG="${CHANGELOG%-----BEGIN*}"
# Change linebreaks and other special characters
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "Setting changelog body to\n\n$CHANGELOG\n"
echo 'changelog<<EOF' >> $GITHUB_ENV
echo $CHANGELOG >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
Expand All @@ -50,7 +62,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: v${{ github.ref }}
release_name: v${{ env.GITHUB_ENV.release_version }}
body: ${{ env.GITHUB_ENV.changelog }}
draft: false
prerelease: false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alfred-jira-search",
"version": "2.1.1",
"version": "2.1.2",
"description": "Alfred workflow to quickly search through your Jira issues",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ When using the `jj` command, some smart filtering can be done:
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.1.1</string>
<string>2.1.2</string>
<key>webaddress</key>
<string>https://www.titouanmathis.com</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alfred-jira-search",
"version": "2.1.1",
"version": "2.1.2",
"homepage": "https://github.com/titouanmathis/alfred-jira-search",
"dependencies": {
"axios": "^0.21.0",
Expand Down

0 comments on commit 9c476c5

Please sign in to comment.