diff --git a/.gitea/workflows/template-cleanup.yaml b/.gitea/workflows/template-cleanup.yaml index 98dd9e9..2403794 100644 --- a/.gitea/workflows/template-cleanup.yaml +++ b/.gitea/workflows/template-cleanup.yaml @@ -15,7 +15,6 @@ jobs: contents: write steps: - # 检出当前仓库 - name: Fetch Sources uses: actions/checkout@v4 @@ -35,17 +34,15 @@ jobs: find . -type f -exec sed -i "s/zabbixagent2plugintemplate/$SAFE_REPO_NAME/g" {} + find . -type f -exec sed -i "s/Zabbix Agent 2 Plugin Template/$REPO_NAME/g" {} + -# # 记录文件修改 -# - name: Commit files -# run: | -# git config --local user.email "action@github.com" -# git config --local user.name "GitHub Action" -# git add . -# git commit -m "Template cleanup" -# -# # 推送更改 -# - name: Push changes -# uses: ad-m/github-push-action@master -# with: -# branch: main -# github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Commit files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add . + git commit -m "Template cleanup" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }}