diff --git a/.github/workflows/build_coverage.yaml b/.github/workflows/build_coverage.yaml index 559d6cdd1e..90b2feb5ed 100644 --- a/.github/workflows/build_coverage.yaml +++ b/.github/workflows/build_coverage.yaml @@ -43,11 +43,19 @@ jobs: CI: true TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres - - run: scripts/commit-coverage.sh + - run: | + git config --global user.name "${GH_NAME}" + git config --global user.email "${GH_EMAIL}" + GIT_USER="${GH_NAME}" + echo "machine github.com login ${GH_NAME} password ${GITHUB_TOKEN}" > ~/.netrc + + git add coverage + git diff-index --quiet HEAD || git commit -m 'chore: update coverage reports' + git push origin env: GH_NAME: 'ivarconr' GH_EMAIL: 'ivarconr@gmail.com' - GH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Coveralls uses: coverallsapp/github-action@master with: diff --git a/scripts/commit-coverage.sh b/scripts/commit-coverage.sh deleted file mode 100755 index 77678e310a..0000000000 --- a/scripts/commit-coverage.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -git config --global user.name "${GH_NAME}" -git config --global user.email "${GH_EMAIL}" -echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc - -git add coverage -git diff-index --quiet HEAD || git commit -m 'chore: update coverage reports' -git push origin \ No newline at end of file