name: fig on: workflow_dispatch: push: tags: - 'v*' permissions: contents: read jobs: fig: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3 - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4 with: go-version: stable 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