Skip to content

Commit

Permalink
fix: move conventional commits to own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Aug 29, 2024
1 parent a31d401 commit 6a56edd
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"src": "1.0.3"
"": "0.0.0"
}
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: CI

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
pull_request:
push:
branches:
Expand All @@ -18,10 +12,14 @@ permissions:
pull-requests: read

jobs:
conventional-commits:
if: ${{ github.event_name }} == 'pull_request_target'
fmt:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3

- name: Format
run: terraform fmt -recursive -check
21 changes: 21 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6a56edd

Please sign in to comment.