Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: add condition to trigger dispatch only for specific tags #3411

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ jobs:
- name: Extract tag name
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Validate tag pattern
id: validate_tag
run: |
if [[ "${TAG_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "TAG_VALID=true" >> $GITHUB_ENV
else
echo "TAG_VALID=false" >> $GITHUB_ENV
fi

- name: Trigger dispatch for obol-docs
if: env.TAG_VALID == 'true'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.OBOL_PLATFORM_PAT }}
Expand All @@ -49,6 +59,7 @@ jobs:

- name: Trigger dispatch for helm-charts
uses: peter-evans/repository-dispatch@v3
if: env.TAG_VALID == 'true'
with:
token: ${{ secrets.OBOL_PLATFORM_PAT }}
repository: ObolNetwork/helm-charts
Expand All @@ -57,6 +68,7 @@ jobs:

- name: Trigger dispatch for obol-ansible
uses: peter-evans/repository-dispatch@v3
if: env.TAG_VALID == 'true'
with:
token: ${{ secrets.OBOL_PLATFORM_PAT }}
repository: ObolNetwork/obol-ansible
Expand All @@ -65,6 +77,7 @@ jobs:

- name: Trigger dispatch for CDVN
uses: peter-evans/repository-dispatch@v3
if: env.TAG_VALID == 'true'
with:
token: ${{ secrets.OBOL_PLATFORM_PAT }}
repository: ObolNetwork/charon-distributed-validator-node
Expand All @@ -73,6 +86,7 @@ jobs:

- name: Trigger dispatch for CDVC
uses: peter-evans/repository-dispatch@v3
if: env.TAG_VALID == 'true'
with:
token: ${{ secrets.OBOL_PLATFORM_PAT }}
repository: ObolNetwork/charon-distributed-validator-cluster
Expand Down
Loading