diff --git a/.github/workflows/pr-title.yaml b/.github/workflows/pr-title.yaml index 3313886..a91186a 100644 --- a/.github/workflows/pr-title.yaml +++ b/.github/workflows/pr-title.yaml @@ -70,14 +70,19 @@ jobs: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - - name: Get commitlint scopes from configuration file - id: commit_scope + - name: Get attributes from commitlint configuration file + id: commitlint run: | { echo 'COMMIT_SCOPES<> "$GITHUB_ENV" + { + echo 'COMMIT_TYPES<> "$GITHUB_ENV" - name: Validate PR title conforms to conventional spec id: validate-pr-title @@ -87,6 +92,8 @@ jobs: # https://github.com/amannn/action-semantic-pull-request/issues/248 uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 with: + types: | + ${{ env.COMMIT_TYPES }} requireScope: true scopes: | ${{ env.COMMIT_SCOPES }}