Skip to content

fix: update alpha branch [skip release] #1060

fix: update alpha branch [skip release]

fix: update alpha branch [skip release] #1060

name: "dhis2: verify (commits)"
on:
pull_request:
types: ["opened", "edited", "reopened", "synchronize"]
jobs:
lint-pr-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- id: commitlint
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
- uses: JulienKode/pull-request-name-linter-action@v0.5.0
with:
configuration-path: ${{ steps.commitlint.outputs.config_path }}
lint-commits:
runs-on: ubuntu-latest
if: |
!contains(github.event.pull_request.head.message, '[skip release]') &&
!contains(github.event.pull_request.head.message, '[skip ci]')
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- run: git log -10 --oneline
- run: echo ${{ toJson(github.event) }}
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github.event) }}
run: echo "$GITHUB_CONTEXT"
- id: commitlint
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
- uses: wagoid/commitlint-github-action@v5
with:
configFile: ${{ steps.commitlint.outputs.config_path }}
# commitDepth: 10