Skip to content

Merge pull request #219 from ponkio-o/renovate/golang #210

Merge pull request #219 from ponkio-o/renovate/golang

Merge pull request #219 from ponkio-o/renovate/golang #210

Workflow file for this run

name: release
on:
push:
branches:
- main
jobs:
tagpr:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: read
outputs:
tag: ${{ steps.tagpr.outputs.tag }}
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install aqua
uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
with:
aqua_version: v2.29.0
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Run tagpr
id: tagpr
run: tagpr
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
release:
runs-on: ubuntu-latest
needs: [tagpr]
if: needs.tagpr.outputs.tag != ''
permissions:
contents: write
outputs:
tag: ${{ steps.tagpr.outputs.tag }}
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install aqua
uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
with:
aqua_version: v2.29.0
- name: Get tag
run: git pull --tags
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Run goreleaser
run: goreleaser release --clean
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}