1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: inline coverage action script commands

This commit is contained in:
Ivar Conradi Østhus 2022-05-20 16:41:43 +02:00
parent e2442f5a2c
commit 51c1c790b4
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
2 changed files with 10 additions and 11 deletions

View File

@ -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:

View File

@ -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