Skip to content

Fork-friendly improvements to actions and workflow#1041

Open
eshattow wants to merge 2 commits into
home-assistant:masterfrom
eshattow:forkfriendly
Open

Fork-friendly improvements to actions and workflow#1041
eshattow wants to merge 2 commits into
home-assistant:masterfrom
eshattow:forkfriendly

Conversation

@eshattow

@eshattow eshattow commented May 1, 2026

Copy link
Copy Markdown
Contributor
  • 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

@eshattow eshattow force-pushed the forkfriendly branch 4 times, most recently from 8c121ae to 5b8d7c9 Compare May 4, 2026 08:08
@eshattow

eshattow commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

Found it, I was wondering if this is possible and it is! Will mark "ready" after some testing to verify.

@eshattow eshattow force-pushed the forkfriendly branch 6 times, most recently from a0e91e3 to 7c11a97 Compare May 4, 2026 16:31
@eshattow eshattow marked this pull request as ready for review May 6, 2026 23:58
@eshattow

eshattow commented May 7, 2026

Copy link
Copy Markdown
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.

@eshattow eshattow force-pushed the forkfriendly branch 2 times, most recently from 3127163 to ffcfed6 Compare May 7, 2026 10:45
@eshattow

Copy link
Copy Markdown
Contributor Author

rebased to keep up with dependabot

@eshattow

eshattow commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

rebased to master

eshattow added 2 commits June 29, 2026 19:43
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant