Skip to content

Commit

Permalink
ci: Fix up release type for conventional PR and update job defaults (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson authored May 8, 2024
1 parent 662d158 commit e3a57d4
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 43 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- labeled
- closed

defaults:
run:
shell: bash

jobs:
backport:
name: Backport PR
Expand Down
29 changes: 5 additions & 24 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ permissions:
contents: read
pull-requests: write


defaults:
run:
shell: bash

jobs:
unit-test:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -43,9 +45,6 @@ jobs:

e2e-test:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -68,9 +67,6 @@ jobs:

lint:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -96,9 +92,6 @@ jobs:

generated:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -116,9 +109,6 @@ jobs:

lint-gha:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -131,9 +121,6 @@ jobs:

lint-dockerfile:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -146,9 +133,6 @@ jobs:

pre-commit:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -173,9 +157,6 @@ jobs:

lint-test-helm:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
schedule:
- cron: '32 21 * * 2'

defaults:
run:
shell: bash

jobs:
analyze:
name: Analyze
Expand All @@ -21,10 +25,6 @@ jobs:
matrix:
language: [ 'go' ]

defaults:
run:
shell: bash

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/conventional-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
types:
- opened
- edited

defaults:
run:
shell: bash

jobs:
label:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: bcoe/conventional-release-labels@v1
21 changes: 18 additions & 3 deletions .github/workflows/conventional-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,28 @@ on:
types:
- opened
- edited

defaults:
run:
shell: bash

jobs:
check:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: amannn/action-semantic-pull-request@v5
with:
types: |
build
ci
docs
feat
fix
perf
refactor
release
revert
style
test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/dependabot-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ permissions:
pull-requests: write
contents: write

defaults:
run:
shell: bash

jobs:
enable-automerge:
runs-on: ubuntu-22.04
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]'}}
defaults:
run:
shell: bash
steps:
- name: Dependabot metadata
id: dependabot-metadata
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ permissions:
packages: write
pull-requests: write

defaults:
run:
shell: bash

jobs:
release-please:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: google-github-actions/[email protected]
id: release-please
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/stacked-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ on:
pull_request_target:
types: [opened, edited, reopened, synchronize]

defaults:
run:
shell: bash

jobs:
check:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: z0al/dependent-issues@v1
env:
Expand Down

0 comments on commit e3a57d4

Please sign in to comment.