File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55
55
# - name: Setup tmate session
56
56
# uses: mxschmitt/action-tmate@v3
57
57
- name : Get metadata
58
+ id : get_metadata
58
59
run : |
59
60
echo "COMMIT_SHA=$(git rev-parse --short ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
60
61
echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
62
+ echo "::set-output name=commit_sha::$(git log -n 1 --pretty=format:%s ${{ github.event.pull_request.head.sha }})"
61
63
# - name: "BRANCH: ${{ github.ref_name }}"
62
64
# run: echo ""
63
65
- name : " Current commit: ${{ env.COMMIT_SHA }} - ${{ env.COMMIT_MESSAGE }}"
91
93
run : yarn install --ignore-engines
92
94
outputs :
93
95
dependency_cache_key : ${{ steps.compute_lockfile_hash.outputs.hash }}
96
+ commit_sha : ${{ steps.get_metadata.outputs.commit_sha }}
94
97
95
98
job_metadata :
96
- name : " Commit: ${{ env.COMMIT_SHA }} - ${{ env.COMMIT_MESSAGE }}"
99
+ name : " Commit: ${{ needs.job_install_deps.outputs.commit_sha }}"
100
+ # name: "Commit: ${{ needs.job_install_deps.outputs.commit_sha }} - ${{ env.COMMIT_MESSAGE }}"
101
+ needs : job_install_deps
97
102
runs-on : ubuntu-latest
98
103
steps :
99
104
- name : This is a dummy job, just to display metadata
You can’t perform that action at this time.
0 commit comments