Skip to content

Commit f4eae5e

Browse files
authored
Add smart path-based component tagging workflows (#1104)
1 parent c2d0caf commit f4eae5e

3 files changed

Lines changed: 72 additions & 2 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tag auth-provider-gcp
2+
3+
on:
4+
push:
5+
branches:
6+
- 'release-1.*'
7+
paths:
8+
- 'cmd/auth-provider-gcp/**'
9+
- 'go.mod'
10+
- 'go.sum'
11+
12+
jobs:
13+
tag-auth-provider-gcp:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
20+
with:
21+
fetch-depth: 0 # Fetch all history and tags
22+
23+
- name: Configure Git User
24+
run: |
25+
git config user.name "github-actions[bot]"
26+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
27+
28+
- name: Run auto-tag script
29+
env:
30+
DRY_RUN: "false"
31+
FORCE_BRANCH: ${{ github.ref_name }}
32+
COMPONENT_PREFIX: "auth-provider-gcp/"
33+
run: ./tools/auto-tag.sh
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
name: Auto Tag release branches
1+
name: Tag CCM
22

33
on:
44
push:
55
branches:
66
- 'release-1.*'
7+
paths-ignore:
8+
- 'cmd/auth-provider-gcp/**'
9+
- 'cmd/gke-gcloud-auth-plugin/**'
710

811
jobs:
9-
auto-tag:
12+
tag-ccm:
1013
runs-on: ubuntu-latest
1114
permissions:
1215
contents: write
@@ -25,4 +28,5 @@ jobs:
2528
env:
2629
DRY_RUN: "false"
2730
FORCE_BRANCH: ${{ github.ref_name }}
31+
COMPONENT_PREFIX: ""
2832
run: ./tools/auto-tag.sh
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tag gke-gcloud-auth-plugin
2+
3+
on:
4+
push:
5+
branches:
6+
- 'release-1.*'
7+
paths:
8+
- 'cmd/gke-gcloud-auth-plugin/**'
9+
- 'go.mod'
10+
- 'go.sum'
11+
12+
jobs:
13+
tag-gke-gcloud-auth-plugin:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
20+
with:
21+
fetch-depth: 0 # Fetch all history and tags
22+
23+
- name: Configure Git User
24+
run: |
25+
git config user.name "github-actions[bot]"
26+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
27+
28+
- name: Run auto-tag script
29+
env:
30+
DRY_RUN: "false"
31+
FORCE_BRANCH: ${{ github.ref_name }}
32+
COMPONENT_PREFIX: "gke-gcloud-auth-plugin/"
33+
run: ./tools/auto-tag.sh

0 commit comments

Comments
 (0)