Skip to content

Commit 3940689

Browse files
chore: update global workflows (#501)
1 parent 6580224 commit 3940689

17 files changed

+218
-1039
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[flake8]
22
filename =
3-
*.py,
4-
*.pys
3+
*.py
54
max-line-length = 120
65
extend-exclude =
6+
.venv/
77
venv/

.github/dependabot.yml

Lines changed: 70 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,100 @@
55

66
version: 2
77
updates:
8+
- package-ecosystem: "cargo"
9+
directory: "/"
10+
rebase-strategy: disabled
11+
schedule:
12+
interval: "cron"
13+
cronjob: "0 1 * * *"
14+
timezone: "America/New_York"
15+
open-pull-requests-limit: 10
16+
817
- package-ecosystem: "docker"
918
directory: "/"
19+
rebase-strategy: disabled
1020
schedule:
11-
interval: "daily"
12-
time: "08:00"
21+
interval: "cron"
22+
cronjob: "30 1 * * *"
23+
timezone: "America/New_York"
1324
open-pull-requests-limit: 10
1425

1526
- package-ecosystem: "github-actions"
27+
directories:
28+
- "/"
29+
- "/.github/actions/*"
30+
- "/actions/*"
31+
rebase-strategy: disabled
32+
schedule:
33+
interval: "cron"
34+
cronjob: "0 2 * * *"
35+
timezone: "America/New_York"
36+
open-pull-requests-limit: 10
37+
groups:
38+
docker-actions:
39+
applies-to: version-updates
40+
patterns:
41+
- "docker/*"
42+
github-actions:
43+
applies-to: version-updates
44+
patterns:
45+
- "actions/*"
46+
- "github/*"
47+
lizardbyte-actions:
48+
applies-to: version-updates
49+
patterns:
50+
- "LizardByte/*"
51+
52+
- package-ecosystem: "gitsubmodule"
1653
directory: "/"
54+
rebase-strategy: disabled
1755
schedule:
18-
interval: "daily"
19-
time: "08:30"
56+
interval: "cron"
57+
cronjob: "30 2 * * *"
58+
timezone: "America/New_York"
2059
open-pull-requests-limit: 10
2160

2261
- package-ecosystem: "npm"
2362
directory: "/"
63+
rebase-strategy: disabled
2464
schedule:
25-
interval: "daily"
26-
time: "09:00"
65+
interval: "cron"
66+
cronjob: "0 3 * * *"
67+
timezone: "America/New_York"
2768
open-pull-requests-limit: 10
69+
groups:
70+
dev-dependencies:
71+
applies-to: version-updates
72+
dependency-type: "development"
2873

2974
- package-ecosystem: "nuget"
3075
directory: "/"
76+
rebase-strategy: disabled
3177
schedule:
32-
interval: "daily"
33-
time: "09:30"
78+
interval: "cron"
79+
cronjob: "30 3 * * *"
80+
timezone: "America/New_York"
3481
open-pull-requests-limit: 10
3582

3683
- package-ecosystem: "pip"
3784
directory: "/"
85+
rebase-strategy: disabled
3886
schedule:
39-
interval: "daily"
40-
time: "10:00"
87+
interval: "cron"
88+
cronjob: "0 4 * * *"
89+
timezone: "America/New_York"
4190
open-pull-requests-limit: 10
91+
groups:
92+
pytest-dependencies:
93+
applies-to: version-updates
94+
patterns:
95+
- "pytest*"
4296

43-
- package-ecosystem: "gitsubmodule"
97+
- package-ecosystem: "rust-toolchain"
4498
directory: "/"
99+
rebase-strategy: disabled
45100
schedule:
46-
interval: "daily"
47-
time: "10:30"
48-
open-pull-requests-limit: 10
101+
interval: "cron"
102+
cronjob: "30 4 * * *"
103+
timezone: "America/New_York"
104+
open-pull-requests-limit: 1

.github/label-actions.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/semantic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ titleAndCommits: false
1212
anyCommit: false
1313
allowMergeCommits: false
1414
allowRevertCommits: false
15+
targetUrl: https://docs.lizardbyte.dev/latest/developers/contributing.html#creating-a-pull-request

.github/workflows/_codeql.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# This workflow is centrally managed in https://github.com/LizardByte/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
name: CodeQL
7+
permissions: {}
8+
9+
on:
10+
pull_request:
11+
push:
12+
branches:
13+
- master
14+
schedule:
15+
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
16+
17+
concurrency:
18+
group: "${{ github.workflow }}-${{ github.ref }}"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
call-codeql:
23+
name: CodeQL
24+
uses: LizardByte/.github/.github/workflows/__call-codeql.yml@master
25+
if: ${{ github.repository != 'LizardByte/.github' }}
26+
permissions:
27+
actions: read
28+
contents: read
29+
security-events: write

.github/workflows/_common-lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# This workflow is centrally managed in https://github.com/LizardByte/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
name: common lint
7+
permissions: {}
8+
9+
on:
10+
pull_request:
11+
12+
concurrency:
13+
group: "${{ github.workflow }}-${{ github.ref }}"
14+
cancel-in-progress: true
15+
16+
jobs:
17+
lint:
18+
name: Common Lint
19+
uses: LizardByte/.github/.github/workflows/__call-common-lint.yml@master
20+
if: ${{ github.repository != 'LizardByte/.github' }}
21+
permissions:
22+
contents: read
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# This workflow is centrally managed in https://github.com/LizardByte/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
# Create a blog post for a new release and open a PR to the blog repo
7+
8+
name: Release Notifications
9+
permissions: {}
10+
11+
on:
12+
release:
13+
types:
14+
- released # this triggers when a release is published, but does not include pre-releases or drafts
15+
16+
jobs:
17+
update-blog:
18+
name: Update blog
19+
uses: LizardByte/.github/.github/workflows/__call-release-notifier.yml@master
20+
if: github.repository_owner == 'LizardByte'
21+
permissions:
22+
contents: read
23+
with:
24+
gh_name: ${{ vars.GH_BOT_NAME }}
25+
secrets:
26+
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
27+
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# This workflow is centrally managed in https://github.com/LizardByte/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
name: Update changelog
7+
permissions: {}
8+
9+
on:
10+
release:
11+
types:
12+
- created
13+
- edited
14+
- deleted
15+
workflow_dispatch:
16+
17+
concurrency:
18+
group: "${{ github.workflow }}"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
update-changelog:
23+
name: Update Changelog
24+
uses: LizardByte/.github/.github/workflows/__call-update-changelog.yml@master
25+
if: >-
26+
github.repository_owner == 'LizardByte' &&
27+
(github.event_name == 'workflow_dispatch' ||
28+
(!github.event.release.prerelease && !github.event.release.draft))
29+
permissions:
30+
contents: read
31+
secrets:
32+
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/_update-docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# This workflow is centrally managed in https://github.com/LizardByte/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
# To use, add the `rtd` repository label to identify repositories that should trigger this workflow.
7+
# If the project slug is not the repository name, add a repository variable named `READTHEDOCS_SLUG` with the value of
8+
# the ReadTheDocs project slug.
9+
10+
# Update readthedocs on release events.
11+
12+
name: Update docs
13+
permissions: {}
14+
15+
on:
16+
release:
17+
types:
18+
- created
19+
- edited
20+
- deleted
21+
22+
concurrency:
23+
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
24+
cancel-in-progress: true
25+
26+
jobs:
27+
update-docs:
28+
name: Update docs
29+
uses: LizardByte/.github/.github/workflows/__call-update-docs.yml@master
30+
if: github.repository_owner == 'LizardByte'
31+
permissions: {}
32+
with:
33+
readthedocs_slug: ${{ vars.READTHEDOCS_SLUG }}
34+
secrets:
35+
READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }}

0 commit comments

Comments
 (0)