diff options
author | dundargoc <gocdundar@gmail.com> | 2024-03-08 14:07:27 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-03-08 17:55:33 +0100 |
commit | 8ba552bd59b0ed9f316ad1473126b603f35c912a (patch) | |
tree | 0637c0fb1bc89f8871388f33fcb8777ed52cea3d | |
parent | 6d680d977525d1198be53c1377c8319e4b60f6c0 (diff) | |
download | rneovim-8ba552bd59b0ed9f316ad1473126b603f35c912a.tar.gz rneovim-8ba552bd59b0ed9f316ad1473126b603f35c912a.tar.bz2 rneovim-8ba552bd59b0ed9f316ad1473126b603f35c912a.zip |
ci: allow skipping news workflow with a label
Setting the label `ci:skip-news` will skip the job. This is useful for
maintainers to indicate to contributors that a feature isn't big enough
to warrant a news entry, or for contributors who dislike red CI even if
there's nothing wrong.
Also change label `ci-s390x` to `ci:s390x`; this way it'll be easier to
see that `ci:` are a subcategory of labels that affect CI in some way.
-rw-r--r-- | .github/workflows/news.yml | 4 | ||||
-rw-r--r-- | .github/workflows/optional.yml | 2 | ||||
-rw-r--r-- | MAINTAIN.md | 5 |
3 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/news.yml b/.github/workflows/news.yml index 09337a0356..8d21b86e8e 100644 --- a/.github/workflows/news.yml +++ b/.github/workflows/news.yml @@ -1,13 +1,13 @@ name: "news.txt" on: pull_request: - types: [opened, synchronize, reopened, ready_for_review] + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] branches: - 'master' jobs: check: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci:skip-news') steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/optional.yml b/.github/workflows/optional.yml index 62d7707928..c9a8205f87 100644 --- a/.github/workflows/optional.yml +++ b/.github/workflows/optional.yml @@ -17,7 +17,7 @@ env: jobs: s390x: - if: contains(github.event.pull_request.labels.*.name, 'ci-s390x') || github.event_name == 'workflow_dispatch' + if: contains(github.event.pull_request.labels.*.name, 'ci:s390x') || github.event_name == 'workflow_dispatch' strategy: fail-fast: false matrix: diff --git a/MAINTAIN.md b/MAINTAIN.md index cc9e11af6c..3c21b13276 100644 --- a/MAINTAIN.md +++ b/MAINTAIN.md @@ -230,8 +230,9 @@ https://github.com/neovim/neovim-backup Some github labels are used to trigger certain jobs: * `backport release-x.y` - backport to release branch -* `ci-s390x` - enable s390x CI -* `needs:response` - Close PR after a certain amount of time if author doesn't +* `ci:s390x` - enable s390x CI +* `ci:skip-news` - skip news.yml workflows +* `needs:response` - close PR after a certain amount of time if author doesn't respond See also |