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

View File

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