Skip to content

Commit

Permalink
Update GitHub Action workflows (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 13, 2021
1 parent 9b41924 commit 78998c8
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ name: "CodeQL"
# yamllint disable-line rule:truthy
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: "30 1 * * 0"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- main
paths:
- .github/labels.yml
workflow_dispatch:

jobs:
labels:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name: Linting

# yamllint disable-line rule:truthy
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:

jobs:
precommit:
Expand Down Expand Up @@ -33,8 +36,6 @@ jobs:
name: Check for broken symlinks
- id: check-toml
name: Check TOML files
- id: check-xml
name: Check XML files
- id: check-yaml
name: Check YAML files
- id: codespell
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PR Labels

# yamllint disable-line rule:truthy
on:
pull_request:
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]

jobs:
Expand All @@ -15,6 +15,7 @@ jobs:
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
pull-request-number: "${{ github.event.pull_request.number }}"
valid-labels: >-
breaking-change, bugfix, documentation, enhancement,
refactor, performance, new-feature, maintenance, ci, dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
update_release_draft:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name: Testing

# yamllint disable-line rule:truthy
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:

jobs:
pytest:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/typing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name: Typing

# yamllint disable-line rule:truthy
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:

jobs:
mypy:
Expand Down

0 comments on commit 78998c8

Please sign in to comment.