From 72b9c85781c1a4edf27a8dbfb57797f279543c61 Mon Sep 17 00:00:00 2001 From: kitsuyui Date: Sun, 14 Jun 2026 11:13:45 +0900 Subject: [PATCH] ci: add timeout-minutes to all jobs and concurrency to gitignore-in.yml - Add timeout-minutes: 30 to test and octocov jobs (Cypress E2E workflows) - Add timeout-minutes: 20 to publish job - Add timeout-minutes: 15 to update-gitignore job - Add timeout-minutes: 10 to happy and spellcheck jobs - Add concurrency group to gitignore-in.yml (schedule workflow with write permissions was the only workflow missing concurrency control) Prevents runners from being occupied for up to 6 hours on hung jobs, and prevents duplicate PR creation if the daily gitignore update cron overlaps with a previous run. --- .github/workflows/ci.yml | 4 ++++ .github/workflows/gitignore-in.yml | 5 +++++ .github/workflows/happy.yml | 1 + .github/workflows/publish.yml | 1 + .github/workflows/spellcheck.yml | 1 + 5 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99ea8049..9a941bf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,9 @@ permissions: jobs: test: runs-on: ubuntu-latest + timeout-minutes: 30 + env: + CYPRESS_COVERAGE: "true" steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 @@ -56,6 +59,7 @@ jobs: octocov: runs-on: ubuntu-latest needs: [test] + timeout-minutes: 30 env: CYPRESS_COVERAGE: "true" steps: diff --git a/.github/workflows/gitignore-in.yml b/.github/workflows/gitignore-in.yml index c07d54be..4f813ae2 100644 --- a/.github/workflows/gitignore-in.yml +++ b/.github/workflows/gitignore-in.yml @@ -9,8 +9,13 @@ permissions: contents: write pull-requests: write +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false + jobs: update-gitignore: runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: gitignore-in/gh-action@98ab8a7225c88b81167bfef156dbad83c554aaf4 # v0.2.3 diff --git a/.github/workflows/happy.yml b/.github/workflows/happy.yml index 9735f83a..792c3cf5 100644 --- a/.github/workflows/happy.yml +++ b/.github/workflows/happy.yml @@ -14,6 +14,7 @@ permissions: jobs: happy: runs-on: ubuntu-latest + timeout-minutes: 10 name: happy steps: - uses: kitsuyui/happy-commit@b8724714862e1b643122b8f233b3aaca26b9825d # v0.9 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5072624d..0de94809 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,7 @@ jobs: deploy: name: Publish runs-on: ubuntu-latest + timeout-minutes: 20 permissions: contents: write steps: diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 46632c6b..25cf64c5 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -11,6 +11,7 @@ permissions: jobs: check: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7