Skip to content

feat: add outputs for changed modules in GitHub Action #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

virgofx
Copy link
Member

@virgofx virgofx commented Feb 9, 2025

This pull request includes several changes to the GitHub Actions workflows, README documentation, and source code to enhance the functionality and output of the CI process. The most important changes include adding new outputs to the GitHub Action, updating the checkoutWiki function to handle existing repositories, and modifying the test cases to validate the new behavior.

Enhancements to GitHub Actions:

  • .github/workflows/ci.yml: Added a new step to test action outputs, including checks for changed module names, paths, and maps, as well as all module names, paths, and maps.
  • action.yml: Added new outputs for changed module names, paths, and maps, as well as all module names, paths, and maps.

Documentation updates:

  • README.md: Added a new section detailing the available outputs from the action, including example output structures.

Source code improvements:

  • src/main.ts: Modified the run function to set the new outputs for the GitHub Action and log the changes for debugging. Renamed handleWikiOperations to handleReleasePlanComment for clarity. [1] [2] [3]
  • src/wiki.ts: Updated the checkoutWiki function to initialize the repository only if it does not already exist and to update the remote URL if the origin already exists.

Test case updates:


Fixes #24

@virgofx virgofx force-pushed the 24-add-outputs-for-changed-module-names-and-paths-in-github-action branch from 78346fe to 2fcd238 Compare February 9, 2025 06:58
@virgofx virgofx force-pushed the 24-add-outputs-for-changed-module-names-and-paths-in-github-action branch from 2fcd238 to 6a77b55 Compare February 10, 2025 19:51
@virgofx virgofx force-pushed the 24-add-outputs-for-changed-module-names-and-paths-in-github-action branch 7 times, most recently from d05aefa to cd390fb Compare February 12, 2025 06:40
@virgofx virgofx force-pushed the 24-add-outputs-for-changed-module-names-and-paths-in-github-action branch 3 times, most recently from 0915493 to 05ca2ab Compare February 12, 2025 07:47
@virgofx virgofx force-pushed the 24-add-outputs-for-changed-module-names-and-paths-in-github-action branch from 05ca2ab to a7f9e26 Compare February 12, 2025 07:52
Copy link

Release Plan

No terraform modules updated in this pull request.

✅ Wiki Check ℹ️

Note: The following Terraform modules no longer exist in source; however, corresponding tags/releases exist. Automation tag/release deletion is disabledno subsequent action will take place.

v1.4.1, v1.4.0, v1.3.1, v1.3.0, v1.2.0, v1.1.1, v1.1.0, v1.0.1, v1.0.0, v1

Powered by techpivot/terraform-module-releaser

@virgofx virgofx marked this pull request as ready for review February 12, 2025 07:55
@virgofx virgofx self-assigned this Feb 12, 2025
@virgofx virgofx added the enhancement New feature or request label Feb 12, 2025
@virgofx virgofx merged commit d4d71db into main Feb 12, 2025
26 checks passed
@virgofx virgofx deleted the 24-add-outputs-for-changed-module-names-and-paths-in-github-action branch February 12, 2025 07:56
@release-preview release-preview bot mentioned this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Outputs for Changed Module Names and Paths in GitHub Action
1 participant