mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 09:50:45 -05:00
Update build.yaml to display last commit message and tags
This commit is contained in:
parent
5a2e50da81
commit
3714bd83be
@ -31,21 +31,21 @@ jobs:
|
|||||||
echo "NPM version: $(npm --version)"
|
echo "NPM version: $(npm --version)"
|
||||||
echo "Latest Commit Hash: $(git rev-parse HEAD)"
|
echo "Latest Commit Hash: $(git rev-parse HEAD)"
|
||||||
echo "Associated Tags: $(git tag --contains HEAD)"
|
echo "Associated Tags: $(git tag --contains HEAD)"
|
||||||
echo "Branch Name: $(git branch --show-current)"
|
echo "Last Commit Message:" && git log -1 --pretty=%B
|
||||||
echo "Last Commit Message: $(git log -1 --pretty=%B)"
|
|
||||||
|
|
||||||
- name: Cache Keys
|
- name: Cache Keys
|
||||||
id: cache-keys
|
id: cache-keys
|
||||||
run: |
|
run: |
|
||||||
cd ./server
|
cd ./server
|
||||||
echo "::set-output name=commit_hash::$(git rev-parse HEAD)"
|
echo "::set-output name=commit_hash::$(git rev-parse HEAD)"
|
||||||
TAGS=$(git tag --contains HEAD)
|
TAGS=$(git tag --contains HEAD || echo "no-tag")
|
||||||
if [[ "$TAGS" == "" ]]; then
|
if [ -z "$TAGS" ]; then
|
||||||
TAGS="no-tag"
|
TAGS="no-tag"
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=tags::${TAGS//[$'\n\r']/}"
|
printf "::set-output name=tags::%s" "${TAGS//$'\n'/,}"
|
||||||
echo "Commit Hash: ${{ steps.cache-keys.outputs.commit_hash }}"
|
echo "Commit Hash: ${{ steps.cache-keys.outputs.commit_hash }}"
|
||||||
echo "Tags: ${{ steps.cache-keys.outputs.tags }}"
|
echo "Tags: ${{ steps.cache-keys.outputs.tags }}"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Build Cache
|
- name: Build Cache
|
||||||
id: build-cache
|
id: build-cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user