Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 #18
Workflow file for this run
This file contains 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: after-merge-dependabot | |
on: | |
pull_request_target: | |
types: [closed] | |
jobs: | |
check: | |
if: github.event.pull_request.merged && github.actor == 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
concurrency: | |
group: dependabot-after-merge | |
cancel-in-progress: true | |
steps: | |
- name: Fetch dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- uses: oprypin/find-latest-tag@v1 | |
id: octokit | |
with: | |
repository: ${{ github.repository }} | |
prefix: v | |
- name: Parse last release | |
id: semver_parser | |
uses: booxmedialtd/ws-action-parse-semver@v1 | |
with: | |
input_string: '${{ steps.octokit.outputs.tag }}' | |
version_extractor_regex: 'v(.*)$' | |
- name: Compute tag | |
id: compte_tag | |
run: | | |
major=${{ steps.semver_parser.outputs.major }} | |
minor=${{ steps.semver_parser.outputs.minor }} | |
patch=${{ steps.semver_parser.outputs.patch }} | |
if [ "${{ steps.dependabot-metadata.outputs.update-type }}" == "version-update:semver-minor" ]; then | |
minor=$((minor+1)) | |
patch=0 | |
echo "::warning::bumping minor version" | |
elif [ "${{ steps.dependabot-metadata.outputs.update-type }}" == "version-update:semver-patch" ]; then | |
patch=$((patch+1)) | |
echo "::warning::bumping patch version" | |
fi | |
tag="v${major}.${minor}.${patch}" | |
echo "::set-output name=tag::${tag}" | |
echo "::warning::tag == ${tag}" | |
- name: Create tag | |
uses: tvdias/[email protected] | |
if: steps.compte_tag.outputs.tag != steps.semver_parser.outputs.fullversion | |
with: | |
repo-token: "${{ secrets.AUTO_MERGE_TOKEN }}" | |
tag: "${{ steps.compte_tag.outputs.tag }}" |