-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
name
property to find current job in GitHub API response
This updates the change made in d7e7736. Copied from test-observability-action commit 518bc5e. Motivation as described in that commit: > I originally tried implementing this by passing a job-index input, whose > value was the index to which the current job corresponds in the response > from the "list jobs for a workflow run attempt" GitHub API. However, > some experimentation then showed that that the order in which the jobs > are listed in the action YAML file doesn’t necessarily match that in > which they are returned from the API, so there was no way to calculate > the value to pass for job-index. Hence, switched to using the job’s > `name` instead.
- Loading branch information
1 parent
9d1163f
commit 8db1987
Showing
2 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters