refactor: Move ComputeVPNGateway to identity and refs pattern (#11590) #1802
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
| # Copyright 2025 Google LLC | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Tag Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'release-*' | |
| jobs: | |
| tag-release: | |
| # This job only runs for the GoogleCloudPlatform/k8s-config-connector repository. | |
| if: ${{ github.repository == 'GoogleCloudPlatform/k8s-config-connector' }} | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: "Check for version change" | |
| id: check_version | |
| run: | | |
| # Compare the list of changed files between the last two commits | |
| if git diff --name-only HEAD~1 HEAD | grep -q "version/VERSION"; then | |
| echo "version_changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: "Set git user" | |
| if: steps.check_version.outputs.version_changed == 'true' | |
| run: | | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "GitHub Actions Release Tagger" | |
| - name: "Run tag script" | |
| if: steps.check_version.outputs.version_changed == 'true' | |
| run: | | |
| ./dev/tasks/auto-tag-on-version-update.sh |