|
39 | 39 | - name: Extract tag name |
40 | 40 | run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV |
41 | 41 |
|
| 42 | + - name: Validate tag pattern |
| 43 | + id: validate_tag |
| 44 | + run: | |
| 45 | + if [[ "${TAG_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then |
| 46 | + echo "TAG_VALID=true" >> $GITHUB_ENV |
| 47 | + else |
| 48 | + echo "TAG_VALID=false" >> $GITHUB_ENV |
| 49 | + fi |
| 50 | +
|
42 | 51 | - name: Trigger dispatch for obol-docs |
| 52 | + if: env.TAG_VALID == 'true' |
43 | 53 | uses: peter-evans/repository-dispatch@v3 |
44 | 54 | with: |
45 | 55 | token: ${{ secrets.OBOL_PLATFORM_PAT }} |
|
49 | 59 |
|
50 | 60 | - name: Trigger dispatch for helm-charts |
51 | 61 | uses: peter-evans/repository-dispatch@v3 |
| 62 | + if: env.TAG_VALID == 'true' |
52 | 63 | with: |
53 | 64 | token: ${{ secrets.OBOL_PLATFORM_PAT }} |
54 | 65 | repository: ObolNetwork/helm-charts |
|
57 | 68 |
|
58 | 69 | - name: Trigger dispatch for obol-ansible |
59 | 70 | uses: peter-evans/repository-dispatch@v3 |
| 71 | + if: env.TAG_VALID == 'true' |
60 | 72 | with: |
61 | 73 | token: ${{ secrets.OBOL_PLATFORM_PAT }} |
62 | 74 | repository: ObolNetwork/obol-ansible |
|
65 | 77 |
|
66 | 78 | - name: Trigger dispatch for CDVN |
67 | 79 | uses: peter-evans/repository-dispatch@v3 |
| 80 | + if: env.TAG_VALID == 'true' |
68 | 81 | with: |
69 | 82 | token: ${{ secrets.OBOL_PLATFORM_PAT }} |
70 | 83 | repository: ObolNetwork/charon-distributed-validator-node |
|
73 | 86 |
|
74 | 87 | - name: Trigger dispatch for CDVC |
75 | 88 | uses: peter-evans/repository-dispatch@v3 |
| 89 | + if: env.TAG_VALID == 'true' |
76 | 90 | with: |
77 | 91 | token: ${{ secrets.OBOL_PLATFORM_PAT }} |
78 | 92 | repository: ObolNetwork/charon-distributed-validator-cluster |
|
0 commit comments