Skip to content

Commit f9e45b7

Browse files
chore: update global workflows (#17)
1 parent c2e9a62 commit f9e45b7

5 files changed

Lines changed: 46 additions & 96 deletions

File tree

.github/dependabot.yml

Lines changed: 3 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,11 @@
33
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
44
# the above-mentioned repo.
55

6+
# All dependendencies, except git submodules, in this project are now managed by Renovate.
7+
# See https://github.com/LizardByte/.github/blob/master/renovate-config.json5 for configuration.
8+
69
version: 2
710
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-
17-
- package-ecosystem: "docker"
18-
directory: "/"
19-
rebase-strategy: disabled
20-
schedule:
21-
interval: "cron"
22-
cronjob: "30 1 * * *"
23-
timezone: "America/New_York"
24-
open-pull-requests-limit: 10
25-
26-
- 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-
5211
- package-ecosystem: "gitsubmodule"
5312
directory: "/"
5413
rebase-strategy: disabled
@@ -57,48 +16,3 @@ updates:
5716
cronjob: "30 2 * * *"
5817
timezone: "America/New_York"
5918
open-pull-requests-limit: 10
60-
61-
- package-ecosystem: "npm"
62-
directory: "/"
63-
rebase-strategy: disabled
64-
schedule:
65-
interval: "cron"
66-
cronjob: "0 3 * * *"
67-
timezone: "America/New_York"
68-
open-pull-requests-limit: 10
69-
groups:
70-
dev-dependencies:
71-
applies-to: version-updates
72-
dependency-type: "development"
73-
74-
- package-ecosystem: "nuget"
75-
directory: "/"
76-
rebase-strategy: disabled
77-
schedule:
78-
interval: "cron"
79-
cronjob: "30 3 * * *"
80-
timezone: "America/New_York"
81-
open-pull-requests-limit: 10
82-
83-
- package-ecosystem: "pip"
84-
directory: "/"
85-
rebase-strategy: disabled
86-
schedule:
87-
interval: "cron"
88-
cronjob: "0 4 * * *"
89-
timezone: "America/New_York"
90-
open-pull-requests-limit: 10
91-
groups:
92-
pytest-dependencies:
93-
applies-to: version-updates
94-
patterns:
95-
- "pytest*"
96-
97-
- package-ecosystem: "rust-toolchain"
98-
directory: "/"
99-
rebase-strategy: disabled
100-
schedule:
101-
interval: "cron"
102-
cronjob: "30 4 * * *"
103-
timezone: "America/New_York"
104-
open-pull-requests-limit: 1

.github/workflows/_codeql.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
# the above-mentioned repo.
55

66
name: CodeQL
7-
permissions:
8-
actions: read
9-
contents: read
10-
security-events: write
7+
permissions: {}
118

129
on:
10+
pull_request:
1311
push:
1412
branches:
1513
- master
16-
pull_request:
1714
schedule:
1815
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
1916

@@ -26,3 +23,7 @@ jobs:
2623
name: CodeQL
2724
uses: LizardByte/.github/.github/workflows/__call-codeql.yml@master
2825
if: ${{ github.repository != 'LizardByte/.github' }}
26+
permissions:
27+
actions: read
28+
contents: read
29+
security-events: write

.github/workflows/_common-lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
# the above-mentioned repo.
55

66
name: common lint
7-
permissions:
8-
contents: read
7+
permissions: {}
98

109
on:
1110
pull_request:
@@ -19,3 +18,6 @@ jobs:
1918
name: Common Lint
2019
uses: LizardByte/.github/.github/workflows/__call-common-lint.yml@master
2120
if: ${{ github.repository != 'LizardByte/.github' }}
21+
permissions:
22+
contents: read
23+
pull-requests: read

.github/workflows/_top-issues.yml

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 top issues dashboard
7+
8+
name: Top issues
9+
permissions: {}
10+
11+
on:
12+
schedule:
13+
- cron: '0 6/12 * * *'
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: 'top-issues'
18+
cancel-in-progress: true
19+
20+
jobs:
21+
top-issues:
22+
name: Top issues
23+
uses: LizardByte/.github/.github/workflows/__call-top-issues.yml@master
24+
if: github.repository_owner == 'LizardByte'
25+
permissions:
26+
contents: read
27+
issues: write

renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"local>LizardByte/.github:renovate-config"
5+
]
6+
}

0 commit comments

Comments
 (0)