Skip to content

Commit f8393ed

Browse files
committed
👷 update GitHub Actions workflows
1 parent d1cdde7 commit f8393ed

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

.github/workflows/codacy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ on:
99
- main
1010
schedule:
1111
- cron: '35 11 * * 0'
12+
1213
permissions:
1314
contents: read
15+
1416
jobs:
1517
codacy-security-scan:
1618
permissions:

.github/workflows/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ name: Docs
22

33
on:
44
workflow_call:
5-
workflow_dispatch:
5+
66
permissions:
77
contents: write
8+
89
concurrency:
910
group: docs-${{ github.ref }}
1011
cancel-in-progress: true
12+
1113
jobs:
1214
docs:
1315
runs-on: ubuntu-latest

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on:
44
push:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+*'
7+
78
permissions:
89
contents: read
10+
911
jobs:
1012
test:
1113
uses: ./.github/workflows/test.yml
@@ -81,3 +83,11 @@ jobs:
8183
if: ${{ always() }}
8284
run: |
8385
rm -rf $CHANGELOG_PATH
86+
docs:
87+
uses: ./.github/workflows/docs.yml
88+
needs:
89+
- test
90+
- publish
91+
permissions:
92+
contents: write
93+
secrets: inherit

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ on:
88
branches:
99
- main
1010
workflow_call:
11+
1112
permissions:
1213
contents: read
14+
1315
concurrency:
1416
group: test-${{ github.ref }}
1517
cancel-in-progress: true
18+
1619
jobs:
1720
style:
1821
name: Code style (ktfmt) + Gradle cache

0 commit comments

Comments
 (0)