Merged
Conversation
…ository checks and remove unnecessary inputs
…emplate-server repositories
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.
This pull request refactors the GitHub Actions workflows and composite actions to standardize how repository, package, and container names are handled. It removes hardcoded environment variables and input parameters, replacing them with dynamic values derived from the GitHub context and a setup action. This makes the workflows more reusable and less error-prone when used in template-derived repositories.
Workflow and action input refactoring:
PACKAGE_NAMEandCONTAINER_NAMEenvironment variables from workflow files, using a dedicated setup action (set-package-name) to set these dynamically based on repository context. [1] [2] [3] [4] [5]github.event.repository.nameinstead of comparing full repository names, simplifying logic and improving maintainability. [1] [2] [3] [4] [5] [6] [7]Composite action simplification:
package-name,container-name,repository) from several composite actions (prepare-release,generate-release-notes,show-logs,check-repo-name) and switched to using environment variables or GitHub context for these values. [1] [2] [3] [4]${{ env.PACKAGE_NAME }}or${{ github.event.repository.name }}instead of input parameters, ensuring consistent naming across workflows. [1] [2] [3] [4] [5]Release and artifact naming improvements:
These changes collectively make the CI/CD configuration more robust and easier to maintain across multiple repositories derived from a template.