github-action icon indicating copy to clipboard operation
github-action copied to clipboard

Non-Unique value submitted as service_job_id

Open TimoRoth opened this issue 5 years ago • 1 comments

service_job_id is documented to be unique per job of a parallel build. Github Actions do not seem to provide anything like that, so leaving it blank is the only way to go about it.

So instead of assigning GITHUB_RUN_ID to COVERALLS_SERVICE_JOB_ID(in https://github.com/coverallsapp/github-action/blob/master/src/run.ts#L48), it should probably be assigned to COVERALLS_SERVICE_NUMBER. Which also matches up with the parallel-finish step submitting it as build_num.

TimoRoth avatar Jul 06 '20 12:07 TimoRoth

FYI:

GITHUB_RUN_ID

A unique number for each run within a repository. This number does not change if you re-run the workflow run.

GITHUB_RUN_NUMBER

A unique number for each run of a particular workflow in a repository. This number begins at 1 for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run.

See https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables

fniephaus avatar Aug 03 '20 13:08 fniephaus