Skip to content

Conversation

@virgofx
Copy link
Member

@virgofx virgofx commented Sep 24, 2025

This pull request addresses the accuracy of action outputs during the release process, particularly for the closed event. The main improvement ensures that outputs related to changed modules and release tags correctly reflect the state before a release is created, preventing inconsistencies in downstream usage.

Action output accuracy improvements:

  • Moved the call to setActionOutputs(terraformModules) in src/main.ts to occur before any release actions, ensuring outputs represent modules that needed release prior to the release being created.

Documentation updates:

  • Added a note to README.md clarifying how the changed-modules-map output, latestTag, and releaseTag behave during the closed event, guiding users to reference the correct tag for the newly published version.

Fixes #270

@virgofx virgofx self-assigned this Sep 24, 2025
@github-actions
Copy link

📋 Release Plan

Module Type Latest
Version
New
Version
Release
Details
tf-modules-kms patch 1.0.0 🆕 Initial Release
tf-modules-vpc-endpoint patch 1.0.0 🆕 Initial Release

📝 Changelog

tf-modules-kms-1.0.0 (2025-09-24)

  • 🔀PR #273 - fix: update action output handling for closed events to ensure accurate module release information

tf-modules-vpc-endpoint-1.0.0 (2025-09-24)

  • 🔀PR #273 - fix: update action output handling for closed events to ensure accurate module release information

Wiki Statusℹ️

✅ Enabled

Automated Tag/Release Cleanupℹ️

⏸️ Existing tags and releases will be preserved as the delete-legacy-tags flag is disabled.

Powered by:   techpivot/terraform-module-releaser

@virgofx virgofx added the bug Something isn't working label Sep 24, 2025
@sonarqubecloud
Copy link

@virgofx virgofx requested a review from Copilot September 24, 2025 21:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes an issue with action output accuracy during the closed event by ensuring outputs reflect the state before releases are created. The fix prevents inconsistencies where output values would show incorrect information after the release process modifies the module state.

  • Moved setActionOutputs() call to execute before release operations to capture accurate pre-release state
  • Added documentation clarifying the behavior of output values during closed events
  • Ensures changed-modules-map output correctly reflects modules that needed release before the actual release creation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main.ts Moved setActionOutputs call before release handling to ensure accurate output state
README.md Added documentation note explaining output behavior during closed events

@virgofx virgofx merged commit 76bdeb4 into main Sep 24, 2025
25 checks passed
@virgofx virgofx deleted the 270-bug-changed-module-outputs-empty-since-v170 branch September 24, 2025 21:40
@release-preview release-preview bot mentioned this pull request Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Changed module outputs empty since v1.7.0

2 participants