This commit is contained in:
parent
f2c5cb5f8d
commit
f4c8b5ed21
@ -9,7 +9,7 @@ jobs:
|
|||||||
template-cleanup:
|
template-cleanup:
|
||||||
name: Template Cleanup
|
name: Template Cleanup
|
||||||
runs-on: ubuntu-latest
|
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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
@ -25,8 +25,8 @@ jobs:
|
|||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
# 变量
|
# 变量
|
||||||
NAME="${GITEA_REPOSITORY##*/}"
|
NAME="${GITHUB_REPOSITORY##*/}"
|
||||||
ACTOR=$(echo $GITEA_ACTOR | tr '[:upper:]' '[:lower:]')
|
ACTOR=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]')
|
||||||
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | 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:]')
|
SAFE_ACTOR=$(echo $ACTOR | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
||||||
echo $NAME
|
echo $NAME
|
||||||
@ -47,4 +47,4 @@ jobs:
|
|||||||
# uses: ad-m/github-push-action@master
|
# uses: ad-m/github-push-action@master
|
||||||
# with:
|
# with:
|
||||||
# branch: main
|
# branch: main
|
||||||
# gitea_token: ${{ secrets.GITEA_TOKEN }}
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user