git push
All checks were successful
Template Cleanup / Template Cleanup (push) Has been skipped

This commit is contained in:
Liam Chan 2024-09-04 12:40:52 +08:00
parent 87da521e2e
commit ee5efb0f5a

View File

@ -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 }}