From f4c8b5ed21a072b691b7ccf7177e8a991cd4ad45 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 4 Sep 2024 10:51:10 +0800 Subject: [PATCH] fix --- .gitea/workflows/template-cleanup.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/template-cleanup.yaml b/.gitea/workflows/template-cleanup.yaml index 4f2ef4a..608eb6c 100644 --- a/.gitea/workflows/template-cleanup.yaml +++ b/.gitea/workflows/template-cleanup.yaml @@ -9,7 +9,7 @@ jobs: template-cleanup: name: Template Cleanup runs-on: ubuntu-latest - if: gitea.event.repository.name != 'zabbix-agent-2-plugin-template' + if: github.event.repository.name != 'zabbix-agent-2-plugin-template' permissions: contents: write steps: @@ -25,8 +25,8 @@ jobs: export LANG=C # 变量 - NAME="${GITEA_REPOSITORY##*/}" - ACTOR=$(echo $GITEA_ACTOR | tr '[:upper:]' '[:lower:]') + NAME="${GITHUB_REPOSITORY##*/}" + ACTOR=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]') SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') SAFE_ACTOR=$(echo $ACTOR | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') echo $NAME @@ -47,4 +47,4 @@ jobs: # uses: ad-m/github-push-action@master # with: # branch: main -# gitea_token: ${{ secrets.GITEA_TOKEN }} +# github_token: ${{ secrets.GITHUB_TOKEN }}