Skip to content

Bump cloud.google.com/go/compute from 1.31.0 to 1.31.1 in /tools/clean #489

Bump cloud.google.com/go/compute from 1.31.0 to 1.31.1 in /tools/clean

Bump cloud.google.com/go/compute from 1.31.0 to 1.31.1 in /tools/clean #489

Workflow file for this run

name: Tag Release
on:
pull_request:
types:
- closed
workflow_dispatch:
inputs:
branch:
type: string
description: "Name of existing branch to tag for release"
default: main
required: true
jobs:
tag:
if: (github.event.pull_request.merged == true && (startsWith(github.head_ref, 'release/') || startsWith(github.head_ref, 'pre-release/'))) || (github.event_name == 'workflow_dispatch')
environment: release
name: Tag Release
runs-on: ubuntu-latest
env:
BRANCH: ${{ github.event.inputs.branch || 'main' }}
outputs:
tag: ${{ steps.tag.outputs.tag }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
ref: ${{ env.BRANCH }}
- name: Tag and kick release
id: tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(echo "$BRANCH" | awk -F '/' '{print $2}')
tag="v${version}"
git tag "${tag}"
git push origin "${tag}"
echo "tag=${tag}" >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
release-post-merge:
needs:
- tag
uses: ./.github/workflows/release-post-merge.yml
secrets: inherit
with:
tag: ${{ needs.tag.outputs.tag }}