Skip to content

Commit

Permalink
fix(ci/validate-and-label-pullrequest): use correct branch for valida…
Browse files Browse the repository at this point in the history
…te-and-label-pullrequest script (#485)
  • Loading branch information
cwrau authored Jul 25, 2023
1 parent c025032 commit 02cbe7d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/validate-and-label-pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,30 @@ on:
- synchronize

jobs:
validateAndLabel:
validateCommits:
if: ${{ !startsWith(github.head_ref, 'release-please--') }}
name: Validate and label PR
name: Validate commits
runs-on: ubuntu-latest
env:
CT_TARGET_BRANCH: ${{ github.event.repository.default_branch }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: helm/[email protected]

- name: Conventional commit check
uses: cocogitto/cocogitto-action@v3
validateAndLabelPR:
if: ${{ !startsWith(github.head_ref, 'release-please--') }}
name: Validate and label PR
runs-on: ubuntu-latest
env:
CT_TARGET_BRANCH: ${{ github.event.repository.default_branch }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}

- uses: helm/[email protected]
- run: .github/scripts/validate-and-label-pullrequest.sh
env:
PR_TITLE: ${{ github.event.pull_request.title }}
Expand Down

0 comments on commit 02cbe7d

Please sign in to comment.