From b24840b64151ae8db68bc71ffe5c2547b547349d Mon Sep 17 00:00:00 2001 From: a601287411 <601287411@qq.com> Date: Wed, 29 Mar 2023 17:57:07 +0800 Subject: [PATCH] test github metadata --- .gitea/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 690c918..c59c076 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,11 +6,16 @@ env: COMMIT_ID: ${{ github.sha }} jobs: Explore-Gitea-Actions: - env: - IMAGE_NAME: $(echo $REPOSITORY | awk -F/ '{print $NF}') - IMAGE_TAG: ${COMMIT_ID:0:10} runs-on: ubuntu-latest steps: + - + name: Docker Image Info + id: save_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}" - 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 }}."