現在,只要我推送 wip commit 或任何包含 wip 的 commit,就會在 GitHub Actions 中被標記為跳過。

jobs:
  format:
    runs-on: ubuntu-latest
    if: "! contains(github.event.head_commit.message, 'wip')"

任何包含 [build] 的 commit 會觸發這些工作,其他則會被跳過。

jobs:
  format:
    runs-on: ubuntu-latest
    if: "contains(github.event.head_commit.message, '[build]')"