From dd44ac3d1f3776811ab24fe4a5012f6170f57924 Mon Sep 17 00:00:00 2001 From: isaac Date: Wed, 31 Jul 2024 09:46:59 +0930 Subject: [PATCH] Test with validate --- .github/workflows/docs.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bc0909f61..d07b7fc8e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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" \ No newline at end of file + go-version: '1.22' + - run: go validate main.go \ No newline at end of file