Fork-friendly improvements to actions and workflow#1041
Open
eshattow wants to merge 2 commits into
Open
Conversation
8c121ae to
5b8d7c9
Compare
Contributor
Author
|
Found it, I was wondering if this is possible and it is! Will mark "ready" after some testing to verify. |
a0e91e3 to
7c11a97
Compare
Contributor
Author
|
Confirming this is ready for review. If I understand correctly by observation github.action_repository is available in the env context but not from run context; I don't have any good explanation why this is or where that is written in GitHub Actions documentation though. |
3127163 to
ffcfed6
Compare
Contributor
Author
|
rebased to keep up with dependabot |
Contributor
Author
|
rebased to master |
…name' github.action_repository is imported to the env as ACTION_REPOSITORY for a repository fork-friendly docker image reference github.repository is used instead when there is no action_repository as for example when called from tests as a dotslash self-reference
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
action: use action self-context repository to form the docker image name
github.action_repository is imported to the env as ACTION_REPOSITORY
for a repository fork-friendly docker image reference.
github.repository is used instead when there is no action_repository as
for example when called from tests as a dotslash self-reference.
workflows: publish: specify docker image with github.repository variable