Skip to content

Commit cddbc63

Browse files
committed
Get changelog message
1 parent 99b7b3c commit cddbc63

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,21 @@ jobs:
9898
runs-on: ubuntu-latest
9999

100100
steps:
101-
- name: Extract version
101+
- name: Checkout source
102+
uses: actions/checkout@v3
103+
with:
104+
path: "app"
105+
106+
- name: Extract variables
102107
run: |
103108
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
104109
110+
# Get the tag's commit message
111+
cd app/
112+
CHANGELOG_MESSAGE=$(git show ${GITHUB_REF_NAME} --no-patch --pretty=format:%s)
113+
echo "CHANGELOG_MESSAGE=${CHANGELOG_MESSAGE}" >> $GITHUB_ENV
114+
echo $CHANGELOG_MESSAGE
115+
105116
- name: Create folder structure
106117
run: |
107118
mkdir gitmastery-${VERSION}
@@ -128,9 +139,6 @@ jobs:
128139
# Create the debian folder
129140
mkdir debian
130141
131-
# Get the tag's commit message
132-
CHANGELOG_MESSAGE=$(git show ${VERSION} --no-patch --pretty=format:%s)
133-
134142
# Set the email and name in the changelog
135143
# TODO: Update to something agnostic
136144
EMAIL="woojiahao1234@gmail.com"

0 commit comments

Comments
 (0)