Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get matrix from inside an action #586

Open
sagikazarmark opened this issue Sep 28, 2020 · 1 comment
Open

Get matrix from inside an action #586

sagikazarmark opened this issue Sep 28, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@sagikazarmark
Copy link

Describe the enhancement
I'd like to access the matrix from a custom action.

Additional information
I'm working on an action that uploads a couple log files as artifacts after the job is complete. I'm trying to keep the action as minimal as possible, so it can work without specifying inputs (using defaults).

By default, the artifact name is formatted as JOB_ID-log. Obviously, this name is ambiguous when there is a build matrix. I'd like to use the matrix to generate a unique name, so I can upload each of them to the artifact store. Unfortunately, I can't find an easy way to access the matrix information using toolkit.

I considered the following alternatives:

  • Use a unique ID: I'd like to match the artifact name to the actual build, so this isn't really a good solution.
  • Pass the matrix as input or env: this would require the user to manually pass the matrix to the action which is error prone.
@sagikazarmark sagikazarmark added the enhancement New feature or request label Sep 28, 2020
@sagikazarmark
Copy link
Author

Could be a duplication of #577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant