diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index aa363ca7..50e04c28 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -51,17 +51,11 @@ jobs: - name: submit coverage run: | - export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}" - export GIT_TAG="${GITHUB_REF/refs\/tags\//}" - - if [[ "$GIT_TAG" != "$GITHUB_REF" ]]; then - export GIT_BRANCH=$GIT_TAG - fi - + export GIT_BRANCH=$GITHUB_REF cd backend - $(go env GOPATH)/bin/goveralls -service="GitHub Action" -coverprofile=$GITHUB_WORKSPACE/profile.cov -repotoken $COVERALLS_TOKEN + $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov env: - COVERALLS_TOKEN: ${{secrets.COVERALLS_TOKEN}} + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: build docker image run: docker build --build-arg SKIP_BACKEND_TEST=true --build-arg CI=github .