Use COVERALLS environment variable to detect when coveralls is required

This commit is contained in:
Badlop
2021-06-17 21:54:24 +02:00
parent e7d29e46dd
commit 19705080b4
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rebar3 as test coveralls send
COVERALLS=true rebar3 as test coveralls send
curl -v -k https://coveralls.io/webhook \
--header "Content-Type: application/json" \
--data '{"repo_name":"$GITHUB_REPOSITORY",

View File

@@ -119,7 +119,7 @@ Rules = [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}]), []},
{[plugins], IsRebar3 and (os:getenv("GITHUB_ACTIONS") == "true"),
{[plugins], os:getenv("COVERALLS") == "true",
AppendList([{coveralls, {git,
"https://github.com/RoadRunnr/coveralls-erl.git",
{branch, "feature/git-info"}}} ]), []},