Skip to content

Commit 1321a26

Browse files
committed
use commit label
1 parent 4865f4b commit 1321a26

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
outputs:
6262
commit_sha: ${{ steps.get_metadata.outputs.commit_sha }}
6363
commit_message: ${{ steps.get_metadata.outputs.commit_message }}
64+
commit_label: "${{ needs.job_get_metadata.outputs.commit_sha }}: ${{ needs.job_get_metadata.outputs.commit_message }}"
6465

6566
job_install_deps:
6667
name: Install Dependencies
@@ -71,7 +72,7 @@ jobs:
7172
# - name: Echo data
7273
# run: |
7374
# echo ${{ needs.job_get_metadata.outputs.commit_sha }} - ${{ needs.job_get_metadata.outputs.commit_message }}
74-
- name: "Check out current commit (${{ needs.job_get_metadata.outputs.commit_sha }}: ${{ needs.job_get_metadata.outputs.commit_message }})"
75+
- name: "Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})"
7576
uses: actions/checkout@v2
7677
with:
7778
ref: ${{ env.HEAD_COMMIT }}
@@ -89,8 +90,8 @@ jobs:
8990
# echo "::set-output name=commit_message::$COMMIT_MESSAGE"
9091
# # - name: "BRANCH: ${{ github.ref_name }}"
9192
# # run: echo ""
92-
- name: "CURRENT COMMIT: ${{ env.COMMIT_SHA }} - ${{ env.COMMIT_MESSAGE }}"
93-
run: echo ""
93+
# - name: "CURRENT COMMIT: ${{ env.COMMIT_SHA }} - ${{ env.COMMIT_MESSAGE }}"
94+
# run: echo ""
9495
# - name: "SHA: ${{ github.sha }}"
9596
# run: echo ""
9697
# - name: "GITHUB_HEAD_REF: ${{env.GITHUB_HEAD_REF}}"
@@ -133,7 +134,7 @@ jobs:
133134

134135
job_build:
135136
name: Build
136-
needs: job_install_deps
137+
needs: [ job_get_metadata, job_install_deps ]
137138
runs-on: ubuntu-latest
138139
timeout-minutes: 20
139140
steps:

0 commit comments

Comments
 (0)