From 7f583fe4c58e5e3a8291e413372413e4aa89709c Mon Sep 17 00:00:00 2001 From: a601287411 <601287411@qq.com> Date: Wed, 29 Mar 2023 17:35:09 +0800 Subject: [PATCH] test github metadata --- .gitea/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ed8b839..62de673 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -2,7 +2,7 @@ name: Gitea Actions Demo run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 on: [push] env: - REPOSITORY: ${{ github.repository_name }} + REPOSITORY: ${{ github.repository | cut -d/ -f2 }} COMMIT_ID: ${{ github.sha }} jobs: Explore-Gitea-Actions: @@ -11,7 +11,7 @@ jobs: - 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 $REPOSITORY, commit id is $COMMIT_ID" + - run: echo "repository_name is $REPOSITORY, commit id is $COMMIT_ID, docker tag is ${COMMIT_ID:0:10}" - name: Check out repository code uses: actions/checkout@v3 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."