diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e01593d13..c02b0f420 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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: |