Skip to content

Commit

Permalink
Test with validate
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacCalligeros95 committed Jul 31, 2024
1 parent d554436 commit dd44ac3
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: Generate terraform docs
name: build
on:
- pull_request

push:
branches:
- '**'
workflow_dispatch:
jobs:
docs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@main
fetch-depth: 0
- uses: actions/setup-go@v3
with:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"
go-version: '1.22'
- run: go validate main.go

0 comments on commit dd44ac3

Please sign in to comment.