test github metadata
Explore-Gitea-Actions Details

This commit is contained in:
a601287411 2023-03-29 17:46:42 +08:00
parent 24e32cbf3d
commit 37c1018f07
1 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@ on: [push]
env:
REPOSITORY: ${{ github.repository }}
COMMIT_ID: ${{ github.sha }}
IMAGE_NAME: $(echo $REPOSITORY | awk -F/ '{print $NF}')
IMAGE_TAG: ${COMMIT_ID:0:10}
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
@ -13,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 $IMAGE_NAME, docker tag is ${COMMIT_ID:0:10}"
- run: echo "repository_name is $(echo $REPOSITORY | awk -F/ '{print $NF}'), 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."