Bump google.golang.org/grpc from 1.67.0 to 1.79.3 (#395) #101
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Automatic Releaser" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: write | |
| jobs: | |
| check-commit: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| msg_check: ${{ steps.check-msg.outputs.match }} | |
| steps: | |
| - name: Check Message | |
| id: check-msg | |
| run: | | |
| pattern="^Release v[0-9]+.[0-9]+.[0-9]+ #(minor|major|patch)$" | |
| if [[ "${{ github.event.head_commit.message }}" =~ ${pattern} ]]; then | |
| echo match=true >> $GITHUB_OUTPUT | |
| fi | |
| create-tag: | |
| runs-on: ubuntu-latest | |
| if: needs.check-commit.outputs.msg_check == 'true' | |
| needs: check-commit | |
| outputs: | |
| new_tag: ${{ steps.tagger.outputs.new_tag }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: '0' | |
| - name: Bump version and push tag | |
| id: tagger | |
| uses: anothrNick/github-tag-action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| WITH_V: true | |
| DEFAULT_BUMP: "none" | |
| goreleaser: | |
| runs-on: ubuntu-latest | |
| needs: create-tag | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Unshallow | |
| run: git fetch --prune --unshallow | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| - name: Describe plugin | |
| id: plugin_describe | |
| run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT" | |
| - name: Import GPG key | |
| id: import_gpg | |
| uses: crazy-max/ghaction-import-gpg@v5 | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.PASSPHRASE }} | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| distribution: goreleaser | |
| version: '~> v2' | |
| args: release --clean | |
| env: | |
| GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| API_VERSION: ${{ steps.plugin_describe.outputs.api_version }} | |
| - name: Release notification | |
| uses: mattermost/action-mattermost-notify@2.0.0 | |
| with: | |
| MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | |
| MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME }} | |
| MATTERMOST_ICON_URL: ${{ secrets.MATTERMOST_ICON }} | |
| TEXT: "${{ github.repository }} : Release https://github.com/${{ github.repository }}/releases/tag/${{ needs.create-tag.outputs.new_tag }}" |