[github-actions] Resolve consumer action paths in reusable workflows (#180)#184
Merged
[github-actions] Resolve consumer action paths in reusable workflows (#180)#184
Conversation
Contributor
|
🚀 Preview is available for this pull request. |
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.
Related Issue
Motivation / Context
Consumer repositories call the packaged reusable workflows from
php-fast-forward/dev-tools, but those workflows were resolving local actions like./.github/actions/...relative to the caller repository. That made consumer runs fail as soon as a reusable workflow depended on a local action that only exists in this repository.Changes
php-fast-forward/dev-toolsas a dedicated workflow-action source before using local actions./.dev-tools-workflow-source/.github/actions/...instead of the caller repository.github/actionsdirectories for these reusable workflowsVerification
ruby -e 'require "yaml"; %w[.github/workflows/auto-assign.yml .github/workflows/label-sync.yml .github/workflows/review.yml .github/workflows/tests.yml .github/workflows/reports.yml .github/workflows/changelog.yml .github/workflows/wiki-preview.yml .github/workflows/wiki-maintenance.yml].each { |path| YAML.load_file(path) }; puts "ok"'composer dev-tools changelog:checkgit diff --checkDocumentation / Generated Output
docs/usage/github-actions.rstdocs/usage/syncing-consumer-projects.rstChangelog
Unreleasedentry for the reusable workflow action-source checkout fixReviewer Notes
.github/wikiremains local-only and is intentionally not part of this PR