Skip to content

Commit 48f3178

Browse files
committed
refactor: added recommended github actions
1 parent 4957a75 commit 48f3178

11 files changed

Lines changed: 67 additions & 17 deletions

File tree

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ For answers to common questions about this code of conduct, see the FAQ at
129129
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130130
[Mozilla CoC]: https://github.com/mozilla/diversity
131131
[FAQ]: https://www.contributor-covenant.org/faq
132-
[translations]: https://www.contributor-covenant.org/translations
132+
[translations]: https://www.contributor-covenant.org/translations

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ If applicable, add screenshots to help explain your problem.
2020
## Versions
2121

2222
- Python:
23-
- Spark:
23+
- Spark:

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"labels": [
66
"bump:patch"
77
]
8-
}
8+
}

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
4-
name: Python Build Workflow
1+
name: build
52

63
on:
74
push:

.github/workflows/check-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Semantic PR Check"
1+
name: check-pr
22

33
on:
44
pull_request_target:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python Publish Workflow
1+
name: publish
22
on:
33
workflow_call:
44

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
name: Python Release Workflow
1+
name: release
22
on:
33
workflow_call:
4-
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- 'v*.*.*'
9+
pull_request:
10+
types:
11+
- labeled
512
jobs:
613
release:
714
uses: altcoder/action-python/.github/workflows/release.yml@v0.1

.github/workflows/reviewdog.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: reviewdog
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
shellcheck:
9+
name: runner / shellcheck
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: haya14busa/action-cond@v1
14+
id: reporter
15+
with:
16+
cond: ${{ github.event_name == 'pull_request' }}
17+
if_true: "github-pr-review"
18+
if_false: "github-check"
19+
- uses: reviewdog/action-shellcheck@v1
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
reporter: ${{ steps.reporter.outputs.value }}
23+
level: warning
24+
25+
misspell:
26+
name: runner / misspell
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: reviewdog/action-misspell@v1
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
reporter: github-check
34+
level: warning
35+
locale: "US"
36+
37+
alex:
38+
name: runner / alex
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: reviewdog/action-alex@v1
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
reporter: github-check
46+
level: warning

.github/workflows/sched-template-sync.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Template Sync
1+
name: sched-template-sync
22

33
on:
4-
# cronjob trigger
4+
# cronjob trigger
55
schedule:
66
- cron: "0 0 1 * *"
77
# manual trigger
@@ -18,14 +18,14 @@ jobs:
1818
steps:
1919
# To use this repository's private action, you must check out the repository
2020
- name: Checkout
21-
uses: actions/checkout@v4.1.1
21+
uses: actions/checkout@v4
2222
# https://github.com/actions/checkout#usage
2323
# uncomment if you use submodules within the source repository
2424
# with:
2525
# submodules: true
2626

2727
- name: actions-template-sync
28-
uses: AndreasAugustin/actions-template-sync@v1.4.0
28+
uses: AndreasAugustin/actions-template-sync@v1
2929
with:
3030
github_token: ${{ secrets.GITHUB_TOKEN }}
3131
source_repo_path: altcoder/template-python

.github/workflows/sphinx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Sphinx documentation to Pages
1+
name: sphinx
22

33
on:
44
push:

0 commit comments

Comments
 (0)