From bb6c53eeda15bcd5adcb7f4226df5dfc1bf67567 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 5 Oct 2022 09:33:39 -0300 Subject: [PATCH] feat: fig integration (#3437) closes #3328 Signed-off-by: Carlos A Becker --- .github/workflows/fig.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/fig.yml diff --git a/.github/workflows/fig.yml b/.github/workflows/fig.yml new file mode 100644 index 00000000000..d9211c35bf6 --- /dev/null +++ b/.github/workflows/fig.yml @@ -0,0 +1,25 @@ +on: + workflow_dispatch: + push: + tags: + - 'v*' + +permissions: + contents: read + +jobs: + fig: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3 + - uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v3 + with: + go-version: '>=1.19.1' + cache: true + - run: go run . generate-fig-spec >goreleaser.ts + - uses: withfig/push-to-fig-autocomplete-action@v1 + with: + token: ${{ secrets.GH_PAT }} + autocomplete-spec-name: goreleaser + spec-path: goreleaser.ts + integration: commander