diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4c6604b..b27a500 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -63,12 +63,11 @@ jobs: - name: Clone, Commit and Push shell: bash run: | - COMMIT_MSG=${{ github.event.head_commit.message }} git clone ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/runner-images.git runner-images cd runner-images - if echo "$COMMIT_MSG" | grep -qi "force build"; then - git commit --allow-empty -m "chore: trigger force build gitea actions by JOJ3" + if echo "${{ github.event.head_commit.message }}" | grep -q "force build"; then + git commit --allow-empty -m "chore: trigger force build gitea actions by JOJ3" else - git commit --allow-empty -m "chore: trigger gitea actions by JOJ3" + git commit --allow-empty -m "chore: trigger gitea actions by JOJ3" fi git push