Skip to content

fix(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.26.1 #16

fix(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.26.1

fix(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.26.1 #16

Workflow file for this run

# This worklow will create a new GH release according to the current GRPC_VERSION value in variables.sh
# It is triggered after a PR from head "renovate/grpc-major-upgrade" is merged to master.
# 'renovate/grpc-major-upgrade' is a branch created by Renovate when it finds a new gRPC version to update in variables.sh
# Renovate with this worflow allows us to automatically create new releases whenever Google releases a new gRPC version in github.com/grpc/grpc
# All new versions created by this worflow will be suffixed by _0, e.g v1.46_0. At the moment, patches unrelated to the gRPC version (e.g v1.46_1)
# will still be released manually (for now).
# Note that once a new release is created in GH, a separate workflow will take care of releasing new docker images to dockerhub accordingly.
name: New gPRC Release
on:
pull_request:
types:
- closed
branches:
- 'master'
jobs:
new_release:
if: github.event.pull_request.merged == true && github.head_ref == 'renovate/grpc-major-upgrade'
runs-on: ubuntu-latest
steps:
# checkout the repo
- uses: actions/checkout@v3
with:
submodules: true
# install pcregrep to help extrat the version from variables.sh
- name: Install pcregrep
run: sudo sudo apt-get update -y && sudo apt-get install -y pcregrep
- name: Get version name
run: |
VER=$(pcregrep -o1 "^GRPC_VERSION=\\$\{GRPC_VERSION:-(.*?)\\}$" variables.sh)
# This makes the value accessible from env.Version
echo "VERSION=v${VER}_0" >> $GITHUB_ENV
- name: Create new release
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release create ${{ env.VERSION }} --generate-notes --repo $GITHUB_REPOSITORY