Skip to content

chore: Bump github.com/fatih/color from 1.16.0 to 1.17.0 (#1053) #399

chore: Bump github.com/fatih/color from 1.16.0 to 1.17.0 (#1053)

chore: Bump github.com/fatih/color from 1.16.0 to 1.17.0 (#1053) #399

Workflow file for this run

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: [self-hosted, ARM64, linux]
steps:
- uses: actions/github-script@v5
id: configure-changelog
with:
result-encoding: string
script: |
const changelogTypes = [
{type: "feat", section: "Features", hidden: false},
{type: "chore", section: "Misc", hidden: false},
{type: "fix", section: "BugFixes", hidden: false},
]
return JSON.stringify(changelogTypes)
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
# For why we need to generate a token and not use the default
- name: Generate token
id: generate_token
uses: chanzuckerberg/github-app-token@v1.1.4
with:
app_id: ${{ secrets.CZI_RELEASE_PLEASE_APP_ID }}
private_key: ${{ secrets.CZI_RELEASE_PLEASE_PK }}
- name: release please
uses: google-github-actions/release-please-action@v3.7.13
id: release
with:
release-type: simple
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
changelog-types: ${{ steps.configure-changelog.outputs.result }}
token: ${{ steps.generate_token.outputs.token }}
- uses: actions/checkout@v3
# we need to fetch all history and tags
# so we build the proper version
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
if: ${{ steps.release.outputs.release_created }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
if: ${{ steps.release.outputs.release_created }}