Skip to content

Commit 3db1d27

Browse files
committed
put commit in job title
1 parent 975d9d6 commit 3db1d27

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
# uses: mxschmitt/action-tmate@v3
5757
- name: Get metadata
5858
run: |
59-
echo "COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
59+
echo "COMMIT_SHA=$(git rev-parse --short ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
6060
echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
6161
# - name: "BRANCH: ${{ github.ref_name }}"
6262
# run: echo ""
63-
- name: "Current commit: ${{ env.COMMIT_MESSAGE }} (${{ env.COMMIT_SHA }})"
63+
- name: "Current commit: ${{ env.COMMIT_SHA }} - ${{ env.COMMIT_MESSAGE }}"
6464
run: echo ""
6565
# - name: "SHA: ${{ github.sha }}"
6666
# run: echo ""
@@ -92,6 +92,10 @@ jobs:
9292
outputs:
9393
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }}
9494

95+
job_metadata:
96+
name: "Commit: ${{ env.COMMIT_SHA }} - ${{ env.COMMIT_MESSAGE }}"
97+
runs-on: ubuntu-latest
98+
9599
job_build:
96100
name: Build
97101
needs: job_install_deps

0 commit comments

Comments
 (0)