diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index c59c076..250c2d9 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -10,16 +10,14 @@ jobs: steps: - name: Docker Image Info - id: save_image_info + id: image-info run: | - image_name=$(echo $REPOSITORY | awk -F/ '{print $NF}') - image_tag=${COMMIT_ID:0:10} - echo "::set-output name=IMAGE_NAME::${image_name}" - echo "::set-output name=IMAGE_TAT::${image_tag}" + echo "::set-output name=image_name::$(echo $REPOSITORY | awk -F/ '{print $NF}')" + echo "::set-output name=image_tag::${COMMIT_ID:0:10}" - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - run: echo "repository_name is $IMAGE_NAME, docker tag is $IMAGE_TAG" + - run: echo "repository_name is ${{ steps.image-info.outputs.image_name }}, docker tag is ${{ steps.image-info.outputs.image_tag }}" - name: Check out repository code uses: actions/checkout@v3 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."