Skip to content

Update workflows#51

Merged
javidahmed64592 merged 5 commits intomainfrom
update-workflows
Mar 6, 2026
Merged

Update workflows#51
javidahmed64592 merged 5 commits intomainfrom
update-workflows

Conversation

@javidahmed64592
Copy link
Owner

@javidahmed64592 javidahmed64592 commented Mar 6, 2026

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:

  • Removed hardcoded PACKAGE_NAME and CONTAINER_NAME environment 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]
  • Updated all conditional steps in workflows to use github.event.repository.name instead of comparing full repository names, simplifying logic and improving maintainability. [1] [2] [3] [4] [5] [6] [7]

Composite action simplification:

  • Removed unnecessary input parameters (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]
  • Updated shell scripts within composite actions to use ${{ 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:

  • Standardized artifact and release names to use dynamic repository and package names, improving clarity and reducing manual maintenance when copying workflows to new repositories. [1] [2]

These changes collectively make the CI/CD configuration more robust and easier to maintain across multiple repositories derived from a template.

@javidahmed64592 javidahmed64592 merged commit d21eaf8 into main Mar 6, 2026
12 checks passed
@javidahmed64592 javidahmed64592 deleted the update-workflows branch March 6, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant