chore: refine paths-ignore for all GitHub actions

This commit is contained in:
Andy Pan 2023-07-01 14:37:05 +08:00
parent a66958c9d3
commit 45a0390a9f
2 changed files with 12 additions and 22 deletions

View File

@ -7,22 +7,18 @@ on:
- dev - dev
paths-ignore: paths-ignore:
- '**.md' - '**.md'
- '.github/FUNDING.yml' - '**.yml'
- '.github/release-drafter.yml' - '**.yaml'
- '.github/ISSUE_TEMPLATE/*' - '!.github/workflows/codeql.yml'
- '.github/workflows/pull-request.yml'
- '.github/workflows/release-drafter.yml'
pull_request: pull_request:
branches: branches:
- master - master
- dev - dev
paths-ignore: paths-ignore:
- '**.md' - '**.md'
- '.github/FUNDING.yml' - '**.yml'
- '.github/release-drafter.yml' - '**.yaml'
- '.github/ISSUE_TEMPLATE/*' - '!.github/workflows/codeql.yml'
- '.github/workflows/pull-request.yml'
- '.github/workflows/release-drafter.yml'
schedule: schedule:
# ┌───────────── minute (0 - 59) # ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23) # │ ┌───────────── hour (0 - 23)

View File

@ -7,26 +7,20 @@ on:
- dev - dev
paths-ignore: paths-ignore:
- '**.md' - '**.md'
- '.github/FUNDING.yml' - '**.yml'
- '.github/release-drafter.yml' - '**.yaml'
- '.github/ISSUE_TEMPLATE/*'
- '.github/workflows/codeql.yml'
- '.github/workflows/pull-request.yml'
- '.github/workflows/release-drafter.yml'
- 'examples/*' - 'examples/*'
- '!.github/workflows/test.yml'
pull_request: pull_request:
branches: branches:
- master - master
- dev - dev
paths-ignore: paths-ignore:
- '**.md' - '**.md'
- '.github/FUNDING.yml' - '**.yml'
- '.github/release-drafter.yml' - '**.yaml'
- '.github/ISSUE_TEMPLATE/*'
- '.github/workflows/codeql.yml'
- '.github/workflows/pull-request.yml'
- '.github/workflows/release-drafter.yml'
- 'examples/*' - 'examples/*'
- '!.github/workflows/test.yml'
env: env:
GO111MODULE: on GO111MODULE: on