From b467128c246cefbe51e61bf16c662e1907728fb6 Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Sun, 22 Jan 2023 09:22:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91actions=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在代码没有变化时,git commit会报错: 位于分支 main 您的分支与上游分支 'origin/main' 一致。 无文件要提交,干净的工作区 --- .github/workflows/publishNewFormula.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publishNewFormula.yml b/.github/workflows/publishNewFormula.yml index 42f1df6..4896a19 100644 --- a/.github/workflows/publishNewFormula.yml +++ b/.github/workflows/publishNewFormula.yml @@ -38,9 +38,9 @@ jobs: - name: Git Push run: | cd homebrew-nexttrace - git commit -am 'Publish a new version with Formula' + git commit -am 'Publish a new version with Formula' || true git remote set-url origin https://${{ secrets.gt_token }}@github.com/xgadget-lab/homebrew-nexttrace.git - git push || 1 + git push # env: # SSH_AUTH_SOCK: /tmp/ssh_agent.sock - run: echo "🍏 This job's status is ${{ job.status }}."