terraform-openstack-landing.../.gitea/workflows/pull-request-open.yml
Bertrand Lanson 78ca31f154
Some checks failed
development / Check commit compliance (push) Successful in 27s
pull-requests-open / Check commit compliance (pull_request) Failing after 34s
feat: add versioning requirements, and automatic documentation pipeline
2024-09-08 13:16:37 +02:00

44 lines
1.1 KiB
YAML

---
name: pull-requests-open
on:
pull_request:
types:
- opened
- edited
- synchronize
branches:
- main
jobs:
commit-history-check:
name: Check commit compliance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Install commitizen
run: pip3 install commitizen
shell: bash
working-directory: ./
- run: git log origin/${{ github.event.pull_request.base.ref }}..
- name: Verify commit message compliance
run: |
echo "cz check --rev-range origin/${{ gitea.event.pull_request.base.ref }}.."
cz check --rev-range origin/${{ gitea.event.pull_request.base.ref }}..
shell: bash
working-directory: ./
- name: Render terraform docs
uses: Dirrk/terraform-docs@v1.0.8
with:
tf_docs_working_dir: .
tf_docs_output_file: README.md
tf_docs_output_method: inject
tf_docs_git_push: "true"