Skip to content

Commit

Permalink
use checkout output
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonxh committed Nov 21, 2024
1 parent 94f7120 commit 872acb5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,15 @@ jobs:
prep:
runs-on: ubuntu-latest
outputs:
aptos_git_sha: ${{ steps.resolve.outputs.aptos_git_sha }}
aptos_git_sha: ${{ steps.checkout.outputs.commit }}
steps:
- name: Checkout aptos-core
id: checkout
uses: actions/checkout@v4
with:
repository: aptos-labs/aptos-core
ref: ${{ env.APTOS_GIT_REF }}

- name: Resolve aptos-core commit SHA
id: resolve
run: |
sha=$(git rev-list -n1 HEAD)
echo "aptos_git_sha=$sha" | tee -a "$GITHUB_OUTPUT"
build_push:
permissions:
contents: read
Expand Down

0 comments on commit 872acb5

Please sign in to comment.