Update blank.yml

This commit is contained in:
Sliverkiss
2024-02-20 23:11:41 +08:00
committed by GitHub
parent 85f512ce32
commit 8f4eba3a5d

View File

@@ -39,27 +39,12 @@ jobs:
name: json-artifact
path: ${{ github.workspace }}/sliverkiss.icons.json
- name: Check for changes
id: check_changes
run: |
if [ -z "$(git status --porcelain)" ]; then
echo "未监测到变动,跳过提交"
else
echo "::set-output name=changes_exist::true"
echo "已监测到变动,执行下一步骤"
fi
- name: Commit and push if changes exist
- name: Push to QuantumultX Repository
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
if git diff --staged --quiet; then
echo "未监测到变动,跳过提交"
else
git commit -m "自动更新图标仓库""
git commit -m "自动更新图标仓库"
git push origin HEAD:main
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}