Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Jul 9, 2024
1 parent 1cc6fee commit a692c9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Validate Tag
run: |
MSG=$(git log --format=%B -n 1 ${{github.event.after}})
TAG=$(echo MSG | sed 's/\[\(.*\)\].*/\1/')
TAG=$(echo $MSG | sed 's/\[\(.*\)\].*/\1/')
echo "Found tag {$TAG}"
LINE=$(cat .codegen/changelog_config.yml | grep "tag: \"\[$(echo $TAG)\]\"")
VALID=$([ -z "$TAG" ] && echo "False" || echo "True")
echo "::set-env name=VALID_TAG::${TAG}"
- name: Valid Tag
if: ${{VALID}} != "true"
if: ${{env.VALID_TAG}} != "true"
uses: actions/github-script@v3
with:
script: |
Expand Down

0 comments on commit a692c9e

Please sign in to comment.