Skip to content

dep: update module github.com/google/go-github/v66 to v67 (#513) #555

dep: update module github.com/google/go-github/v66 to v67 (#513)

dep: update module github.com/google/go-github/v66 to v67 (#513) #555

Workflow file for this run

on:
push:
branches:
- master
permissions:
contents: read
name: release
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # needed for release-please
issues: write # needed for github-release-commenter
pull-requests: write # needed for release-please and github-release-commenter
steps:
- uses: GoogleCloudPlatform/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3.7.13
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
package-name: multi-gitter
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"dep","section":"Dependencies","hidden":false}]'
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: "go.mod"
if: ${{ steps.release.outputs.release_created }}
- name: Import GPG key for signing
id: gpg
run: |
echo "${GPG_PRIVATE_KEY}" | gpg --import
fingerprint=$(echo "${GPG_PRIVATE_KEY}" | gpg --show-keys --with-colons | awk -F ":" '$1=="fpr" {print $10}')
echo "fingerprint=$fingerprint" >> $GITHUB_OUTPUT
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
with:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GENERAL_GITHUB_SECRET }} # The tokens needs access to another repo, so the secret.GITHUB_SECRET won't suffice
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} # Gemfury token
GPG_FINGERPRINT: ${{ steps.gpg.outputs.fingerprint }} # Fingerprint of GPG signing key
if: ${{ steps.release.outputs.release_created }}
- name: Comment on prs and issues
uses: apexskier/github-release-commenter@3bd413ad5e1d603bfe2282f9f06f2bdcec079327 # v1.3.6
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment-template: Included in release {release_link} 🎉
skip-label: "autorelease: tagged,autorelease: pending"
if: ${{ steps.release.outputs.release_created }}