Skip to content

Commit 2b5a4d9

Browse files
chore: update global workflows (#414)
1 parent ad24cd6 commit 2b5a4d9

File tree

9 files changed

+97
-991
lines changed

9 files changed

+97
-991
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/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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
actions: read
9+
contents: read
10+
security-events: write
11+
12+
on:
13+
push:
14+
branches:
15+
- master
16+
pull_request:
17+
branches:
18+
- master
19+
schedule:
20+
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
21+
22+
concurrency:
23+
group: "${{ github.workflow }}-${{ github.ref }}"
24+
cancel-in-progress: true
25+
26+
jobs:
27+
call-codeql:
28+
name: CodeQL
29+
uses: LizardByte/.github/.github/workflows/__call-codeql.yml@master
30+
if: ${{ github.repository != 'LizardByte/.github' }}

.github/workflows/_common-lint.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+
name: common lint
7+
permissions:
8+
contents: read
9+
10+
on:
11+
pull_request:
12+
branches:
13+
- master
14+
types:
15+
- opened
16+
- synchronize
17+
- reopened
18+
19+
concurrency:
20+
group: "${{ github.workflow }}-${{ github.ref }}"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
lint:
25+
name: Common Lint
26+
uses: LizardByte/.github/.github/workflows/__call-common-lint.yml@master
27+
if: ${{ github.repository != 'LizardByte/.github' }}

.github/workflows/_docker.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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: Docker
7+
permissions:
8+
contents: write
9+
packages: write
10+
11+
on:
12+
pull_request:
13+
branches:
14+
- master
15+
types:
16+
- opened
17+
- synchronize
18+
- reopened
19+
push:
20+
branches:
21+
- master
22+
workflow_dispatch:
23+
24+
concurrency:
25+
group: "${{ github.workflow }}-${{ github.ref }}"
26+
cancel-in-progress: true
27+
28+
jobs:
29+
call-docker:
30+
name: Docker
31+
uses: LizardByte/.github/.github/workflows/__call-docker.yml@master
32+
if: ${{ github.repository != 'LizardByte/.github' }}
33+
secrets:
34+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
35+
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
36+
GH_BOT_NAME: ${{ secrets.GH_BOT_NAME }}
37+
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
38+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)