Skip to content

Commit ab356ad

Browse files
authored
Merge pull request #92 from github/jm_workflow_types
chore: standardize github action types
2 parents c2edb7b + 3332e64 commit ab356ad

File tree

8 files changed

+30
-35
lines changed

8 files changed

+30
-35
lines changed

.github/workflows/auto-labeler.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
name: Auto Labeler
2+
name: Auto Labeler
33

4-
on:
5-
# pull_request_target event is required for autolabeler to support all PRs including forks
6-
pull_request_target:
7-
types: [opened, reopened, synchronize]
4+
on:
5+
# pull_request_target event is required for autolabeler to support all PRs including forks
6+
pull_request_target:
7+
types: [ opened, reopened, edited, synchronize ]
88

9-
permissions:
10-
contents: read
9+
permissions:
10+
contents: read
1111

12-
jobs:
13-
main:
14-
permissions:
15-
contents: write
16-
pull-requests: write
17-
name: Auto label pull requests
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
with:
24-
config-name: release-drafter.yml
12+
jobs:
13+
main:
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
name: Auto label pull requests
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
config-name: release-drafter.yml

.github/workflows/docker-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Docker Image CI
33

44
on:
55
push:
6-
branches: main
6+
branches: [ main ]
77
pull_request:
8-
branches: main
8+
branches: [ main ]
99

1010
permissions:
1111
contents: read

.github/workflows/major-version-updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Major Version Updater
33
# Whenever a new release is made, push a major version tag
44
on:
55
release:
6-
types: published
6+
types: [ published ]
77

88
permissions:
99
contents: read

.github/workflows/pr-title.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ name: "Lint PR"
44

55
on:
66
pull_request_target:
7-
types:
8-
- opened
9-
- edited
10-
- synchronize
7+
types: [ opened, reopened, edited, synchronize]
118

129
permissions:
1310
contents: read

.github/workflows/python-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: Python package
66

77
on:
88
push:
9-
branches: main
9+
branches: [ main ]
1010
pull_request:
11-
branches: main
11+
branches: [ main ]
1212

1313
permissions:
1414
contents: read

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ name: Release
44
on:
55
workflow_dispatch:
66
pull_request_target:
7-
types:
8-
- closed
9-
branches:
10-
- main
7+
types: [ closed ]
8+
branches: [ main ]
119

1210
permissions:
1311
contents: read

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
schedule:
1212
- cron: '29 11 * * 6'
1313
push:
14-
branches: ["main"]
14+
branches: [ main ]
1515

1616
permissions: read-all
1717

.github/workflows/super-linter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Lint Code Base
33

44
on:
55
pull_request:
6-
branches: main
6+
branches: [ main ]
77

88
permissions:
99
contents: read

0 commit comments

Comments
 (0)