Skip to content

Commit 7967757

Browse files
chore: update global workflows (#581)
1 parent 1b5d4d7 commit 7967757

16 files changed

+195
-1151
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ filename =
33
*.py
44
max-line-length = 120
55
extend-exclude =
6+
.venv/
67
venv/

.github/dependabot.yml

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,34 @@
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"
16-
directory: "/"
27+
directories:
28+
- "/"
29+
- "/.github/actions/*"
30+
- "/actions/*"
31+
rebase-strategy: disabled
1732
schedule:
18-
interval: "daily"
19-
time: "08:30"
33+
interval: "cron"
34+
cronjob: "0 2 * * *"
35+
timezone: "America/New_York"
2036
open-pull-requests-limit: 10
2137
groups:
2238
docker-actions:
@@ -33,11 +49,22 @@ updates:
3349
patterns:
3450
- "LizardByte/*"
3551

52+
- package-ecosystem: "gitsubmodule"
53+
directory: "/"
54+
rebase-strategy: disabled
55+
schedule:
56+
interval: "cron"
57+
cronjob: "30 2 * * *"
58+
timezone: "America/New_York"
59+
open-pull-requests-limit: 10
60+
3661
- package-ecosystem: "npm"
3762
directory: "/"
63+
rebase-strategy: disabled
3864
schedule:
39-
interval: "daily"
40-
time: "09:00"
65+
interval: "cron"
66+
cronjob: "0 3 * * *"
67+
timezone: "America/New_York"
4168
open-pull-requests-limit: 10
4269
groups:
4370
dev-dependencies:
@@ -46,26 +73,32 @@ updates:
4673

4774
- package-ecosystem: "nuget"
4875
directory: "/"
76+
rebase-strategy: disabled
4977
schedule:
50-
interval: "daily"
51-
time: "09:30"
78+
interval: "cron"
79+
cronjob: "30 3 * * *"
80+
timezone: "America/New_York"
5281
open-pull-requests-limit: 10
5382

5483
- package-ecosystem: "pip"
5584
directory: "/"
85+
rebase-strategy: disabled
5686
schedule:
57-
interval: "daily"
58-
time: "10:00"
87+
interval: "cron"
88+
cronjob: "0 4 * * *"
89+
timezone: "America/New_York"
5990
open-pull-requests-limit: 10
6091
groups:
6192
pytest-dependencies:
6293
applies-to: version-updates
6394
patterns:
6495
- "pytest*"
6596

66-
- package-ecosystem: "gitsubmodule"
97+
- package-ecosystem: "rust-toolchain"
6798
directory: "/"
99+
rebase-strategy: disabled
68100
schedule:
69-
interval: "daily"
70-
time: "10:30"
71-
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)