From 51c1c790b4ee726a2f5f8ded729e26c571106fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 20 May 2022 16:41:43 +0200 Subject: [PATCH] fix: inline coverage action script commands --- .github/workflows/build_coverage.yaml | 12 ++++++++++-- scripts/commit-coverage.sh | 9 --------- 2 files changed, 10 insertions(+), 11 deletions(-) delete mode 100755 scripts/commit-coverage.sh 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