Skip to content

Merge pull request #13 from k1LoW/dependabot/go_modules/golang.org/x/… #11

Merge pull request #13 from k1LoW/dependabot/go_modules/golang.org/x/…

Merge pull request #13 from k1LoW/dependabot/go_modules/golang.org/x/… #11

Workflow file for this run

name: tagpr
on:
push:
branches:
- main
jobs:
tagpr:
runs-on: ubuntu-latest
outputs:
tagpr-tag: ${{ steps.run-tagpr.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- id: run-tagpr
name: Run tagpr
uses: Songmu/tagpr@v1
- uses: haya14busa/action-update-semver@v1
if: "steps.run-tagpr.outputs.tag != ''"
with:
major_version_tag_only: true
tag: ${{ steps.run-tagpr.outputs.tag }}
release:
needs: tagpr
if: needs.tagpr.outputs.tagpr-tag != ''
runs-on: macos-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Setup goreleaser
run: |
brew install goreleaser
- name: Release
run: |
make release