diff --git a/.github/workflows/datahub-actions-docker.yml b/.github/workflows/datahub-actions-docker.yml index 94fc550b..7309d7aa 100644 --- a/.github/workflows/datahub-actions-docker.yml +++ b/.github/workflows/datahub-actions-docker.yml @@ -26,7 +26,7 @@ jobs: # The tracking tag will be "head", "v1.2.3", or "pr1234". # The unique tag will be a short SHA. unique_tag: ${{ steps.tag.outputs.unique_tag }} - tracking_tag: ${{ steps.tag.outputs.tag }} + tracking_tag: ${{ steps.tag.outputs.tracking_tag }} steps: - name: Checkout uses: actions/checkout@v3 @@ -41,8 +41,10 @@ jobs: TRACKING_TAG=$(echo ${GITHUB_REF} | sed -e "s,refs/heads/main,head,g" -e 's,refs/tags/,,g' -e 's,refs/pull/\([0-9]*\).*,pr\1,g') echo "TRACKING_TAG: $TRACKING_TAG" - echo "unique_tag=$UNIQUE_TAG" >> "$GITHUB_OUTPUT" - echo "tracking_tag=$TRACKING_TAG" >> "$GITHUB_OUTPUT" + { + echo "unique_tag=${UNIQUE_TAG}" + echo "tracking_tag=${TRACKING_TAG}" + } >> $GITHUB_OUTPUT - name: Check whether publishing enabled id: publish env: @@ -64,6 +66,11 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v4 + - name: Setup Outputs + run: | + echo "GITHUB_REF: $GITHUB_REF" + echo "unique_tag=${{ needs.setup.outputs.unique_tag }}" + echo "tracking_tag=${{ needs.setup.outputs.tracking_tag }}" - name: Docker meta id: docker_meta uses: docker/metadata-action@v5 @@ -101,6 +108,11 @@ jobs: steps: - name: Check out the repo (slim) uses: actions/checkout@v3 + - name: Setup Outputs + run: | + echo "GITHUB_REF: $GITHUB_REF" + echo "unique_tag=${{ needs.setup.outputs.unique_tag }}" + echo "tracking_tag=${{ needs.setup.outputs.tracking_tag }}" - name: Docker meta (slim) id: docker_meta_slim uses: docker/metadata-action@v5