Skip to content

Commit a115546

Browse files
committed
Release 0.2.1, generated from commit 89c73ba
1 parent f369127 commit a115546

File tree

3 files changed

+10
-27
lines changed

3 files changed

+10
-27
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'releases/*'
77

88
jobs:
9-
docker:
9+
check:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
@@ -31,7 +31,11 @@ jobs:
3131
else
3232
echo "create_release=yes" >> $GITHUB_ENV
3333
fi
34-
34+
docker:
35+
needs:
36+
- check
37+
runs-on: ubuntu-latest
38+
steps:
3539
- name: Docker meta
3640
if: ${{ env.create_release == 'yes' }}
3741
id: meta
@@ -90,31 +94,10 @@ jobs:
9094
labels: ${{ steps.meta.outputs.labels }}
9195

9296
action:
97+
needs:
98+
- check
9399
runs-on: ubuntu-latest
94100
steps:
95-
- name: Checkout
96-
uses: actions/checkout@v2
97-
with:
98-
fetch-depth: 0
99-
100-
- name: Check if tag already exists
101-
run: |
102-
# Get version from package.json (head is needed because this also returns "version" npm script line)
103-
sed -n '/version/s/,*\r*$//p' package.json | cut -d ':' -f2,3 | sed -e 's/^ "//' -e 's/"$//' | head -n 1 > app_version.tmp
104-
cat app_version.tmp | cut -d. -f1 > major_version.tmp
105-
106-
export VERSION_TAG="v$(cat app_version.tmp)"
107-
echo "package_version=$(cat app_version.tmp)" >> $GITHUB_ENV
108-
echo "major_version=$(cat major_version.tmp)" >> $GITHUB_ENV
109-
110-
# Check if tag already exists
111-
if [ $(git tag -l "$VERSION_TAG") ]; then
112-
echo "Tag already exists, please increment version to create release"
113-
echo "create_release=no" >> $GITHUB_ENV
114-
else
115-
echo "create_release=yes" >> $GITHUB_ENV
116-
fi
117-
118101
- name: 🚀 Release
119102
uses: softprops/action-gh-release@master
120103
if: ${{ env.create_release == 'yes' }}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira-ci-cd-integration",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"private": true,
55
"description": "TypeScript template action",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)