github.com/Songmu/gocredits@v0.3.1-0.20231111084238-af961788d757/.github/workflows/tagpr.yaml (about) 1 name: tagpr 2 on: 3 push: 4 branches: 5 - "main" 6 jobs: 7 tagpr: 8 runs-on: ubuntu-latest 9 steps: 10 - name: setup go 11 uses: actions/setup-go@v3 12 with: 13 go-version: 1.x 14 - name: checkout 15 uses: actions/checkout@v3 16 - name: tagpr 17 id: tagpr 18 uses: Songmu/tagpr@v1 19 env: 20 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 - uses: ./.github/actions/release 22 with: 23 tag: ${{ steps.tagpr.outputs.tag }} 24 token: ${{ secrets.GITHUB_TOKEN }} 25 if: "steps.tagpr.outputs.tag != ''"