diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8680c6e14..05f2f30f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -274,8 +274,15 @@ jobs: RELEASE_VERSION: ${{ steps.vars.outputs.tag }} run: docker push $IMAGE_NAME:$RELEASE_VERSION + - uses: actions-ecosystem/action-regex-match@v2 + id: regex-match + with: + text: ${{ steps.vars.outputs.tag }} + regex: '^\d\.\d\.\d$' + - name: Trigger deployment env: RELEASE_VERSION: ${{ steps.vars.outputs.tag }} run: | curl -XPOST -u "${{ secrets.SDG_DEPLOYMENT_REPO_ACCESS_TOKEN }}" -H "Accept:application/vnd.github" -H "Content-Type:application/json" ${{ secrets.SDG_DEPLOYMENT_REPO_URL }} --data "{\"ref\": \"main\", \"inputs\": {\"version\": \"$RELEASE_VERSION\"}}" + if: ${{ steps.regex-match.outputs.match != '' }}