Replies: 1 comment 6 replies
-
If you use the Cake GitHub Action these will be populated automatically https://github.com/cake-build/cake-action Example: steps:
- name: Run the Cake script
uses: cake-build/cake-action@v1 You can see example usage of the GitHub provider commands in our integration tests |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tried to perform artifact upload from github actions:
context.BuildSystem().GitHubActions.Commands.UploadArtifact
And apparently I need to have following environment variables to be defined:
With 1 - I think it's more or less obvious - I could remap
GITHUB_TOKEN
to beACTIONS_RUNTIME_TOKEN
- don't understand why, but in theory this could be done.With 2 - it's also more or less ok -
RUN_ID
is just some unique run number. If I want to test on my own PC, I could just use1
maybe or just not to test on my PC.But with 3 it's completely unclear what to use as URL.
https://github.com/<owner>/<repo>
?Also based on some of documentation - I suspect that 1 & 2 should be defined by github itself, and they are some of undocumented environment variables. I suspect those are only exposed to github action runner, not to batch / ps1 script child process which gets executed by github actions.
Do you have any documentation which could give some highlight on how
context.BuildSystem().GitHubActions.Commands.UploadArtifact
should work ?
Beta Was this translation helpful? Give feedback.
All reactions