Skip to content

Introduce a regional-service module #676

Introduce a regional-service module

Introduce a regional-service module #676

Workflow file for this run

name: Generate terraform docs
on:
pull_request:
branches: [ 'main' ]
jobs:
docs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
module:
- audit-serviceaccount
- authorize-private-service
- bucket-events
- cloudevent-broker
- cloudevent-trigger
- cloudevent-recorder
- regional-go-service
- regional-service
- serverless-gclb
- networking
- dashboard/service
- dashboard/job
- dashboard/cloudevent-receiver
- prober
- cron
- configmap
- secret
- github-wif-provider
- github-gsa
- github-events
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: terraform-docs/gh-actions@7a62208a0090636af2df1b739da46d27fd90bdc6 # v1.1.0
with:
working-dir: modules/${{ matrix.module }}
output-file: README.md
output-method: inject
fail-on-diff: "true"
- if: failure()
run: cat modules/${{ matrix.module }}/README.md
conclusion:
permissions:
actions: read
needs: docs
runs-on: ubuntu-latest
if: always()
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3
- if: ${{ env.WORKFLOW_CONCLUSION == 'success' }}
working-directory: /tmp
run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 0
- if: ${{ env.WORKFLOW_CONCLUSION == 'failure' }}
working-directory: /tmp
run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 1