Skip to content

Commit

Permalink
Commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanformio committed Mar 19, 2024
1 parent b1f9c69 commit 2dd1102
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,14 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Branch name
run: echo running on branch ${GITHUB_REF##*/}

- name: Set outputs
- name: Set short git commit SHA
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Check outputs
run: echo ${{ steps.vars.outputs.sha_short }}
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
- name: Confirm git commit SHA output
run: echo ${{ env.COMMIT_SHORT_SHA }}

- name: Prepare version for publish
id: prep
Expand Down

0 comments on commit 2dd1102

Please sign in to comment.