Skip to content

Commit

Permalink
refactor: add extra logging to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cptchloroplast committed Apr 25, 2023
1 parent 003866f commit d579557
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
fetch-depth: 0
- name: Get commit message
run: |
echo "body=$(git log -1 --pretty=format:%B)" >> "$GITHUB_OUTPUT"
BODY=$(git log -1 --pretty=format:%B)
echo "$BODY"
echo "body=$BODY" >> "$GITHUB_OUTPUT"
id: commit-message
- name: Check if prerelease
run: |
[[ "$(git describe --abbrev=0)" =~ \- ]] && PRERELEASE="true" || PRERELEASE="false"
TAG=$(git describe --abbrev=0)
echo "$TAG"
[[ "$TAG" =~ \- ]] && PRERELEASE="true" || PRERELEASE="false"
echo "$PRERELEASE"
echo "prerelease=$PRERELEASE" >> "$GITHUB_OUTPUT"
id: version
- name: Create release
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "template",
"version": "1.0.0-epic-1-v1.2",
"version": "1.0.0-epic-1-v1.3",
"description": "Okkema Labs Javascript Template",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d579557

Please sign in to comment.