Skip to content

Commit 39af25c

Browse files
committed
even better commit messages
1 parent bd80a64 commit 39af25c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/generate-symbols.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ jobs:
147147
done
148148
df_ver=`./dfhack-run lua 'print(dfhack.gui.getDFViewscreen(true).str_version)' | ansifilter`
149149
echo "Found version string: '$df_ver'"
150+
echo "DETECTED_DF_VER=$df_ver" >>$GITHUB_ENV
150151
sed -i "s/v0.50.0 linux64 STEAM/v0.$df_ver linux64 STEAM/" ../xml/symbols.xml
151152
./dfhack-run die || true
152153
fi
@@ -194,7 +195,7 @@ jobs:
194195
- name: Commit symbol updates
195196
uses: stefanzweifel/git-auto-commit-action@v5
196197
with:
197-
commit_message: Auto-update symbols for Linux DF version ${{ inputs.version }}
198+
commit_message: Auto-update symbols for Linux DF version ${{ env.DETECTED_DF_VER || inputs.version }}
198199
repository: xml
199200
commit_user_name: DFHack-Urist via GitHub Actions
200201
commit_user_email: 63161697+DFHack-Urist@users.noreply.github.com
@@ -376,7 +377,7 @@ jobs:
376377
- name: Commit symbol updates
377378
uses: stefanzweifel/git-auto-commit-action@v5
378379
with:
379-
commit_message: Auto-update Windows DF version ${{ env.DETECTED_DF_VER }} in symbols
380+
commit_message: Auto-update Windows DF version to ${{ env.DETECTED_DF_VER }} in symbols
380381
repository: xml
381382
commit_user_name: DFHack-Urist via GitHub Actions
382383
commit_user_email: 63161697+DFHack-Urist@users.noreply.github.com

0 commit comments

Comments
 (0)