From 872acb5b3286ff4b2a30978b8c81391e32c65046 Mon Sep 17 00:00:00 2001 From: Hao Xia Date: Thu, 21 Nov 2024 15:19:17 -0800 Subject: [PATCH] use checkout output --- .github/workflows/docker.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 205c984..2376841 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -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