Skip to content

feat: add new working-dir param to allow to use a subedirectory for modules #241

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions __mocks__/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const defaultConfig: Config = {
moduleAssetExcludePatterns: ['tests/**', 'examples/**'],
githubToken: 'ghp_test_token_2c6912E7710c838347Ae178B4',
useSSHSourceFormat: false,
workingDirectory: '',
};

/**
Expand Down
12 changes: 8 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ inputs:
module-path-ignore:
description: >
A comma-separated list of module paths to completely ignore during processing. Paths matching these patterns will
not be considered for versioning, releases, or documentation generation. These patterns follow glob syntax and are
relative to the repository root. Use this to exclude example modules, test modules, or other paths that should not
not be considered for versioning, releases, or documentation generation. These patterns follow glob syntax and are
relative to the repository root. Use this to exclude example modules, test modules, or other paths that should not
be treated as releasable modules.

This is a top-level filter: if a module matches any of these patterns, it is completely excluded from all release, versioning, and documentation logic. No releases will ever happen for a module that matches this filter.
Expand All @@ -91,7 +91,7 @@ inputs:
description: >
A comma-separated list of file patterns to exclude when bundling a Terraform module for release assets.
These patterns follow glob syntax and are relative to each Terraform module directory, not the repository root.
Files matching these patterns will be excluded from the bundled release archives. Uses matchBase: true for
Files matching these patterns will be excluded from the bundled release archives. Uses matchBase: true for
pattern matching, similar to module-change-exclude-patterns.

These patterns only affect what's included in release assets and do not impact versioning decisions.
Expand All @@ -102,9 +102,13 @@ inputs:
If enabled, all links to source code in generated Wiki documentation will use SSH format instead of HTTPS format.
required: true
default: "false"
working-directory:
description: "The working directory where the action should look for Terraform modules. Defaults to the repository root."
required: false
default: "."
github_token:
description: >
Required for retrieving pull request metadata, tags, releases, updating PR comments, wiki, and creating
Required for retrieving pull request metadata, tags, releases, updating PR comments, wiki, and creating
tags/releases. Automatically injected for convenience; no need to provide a custom token unless you have
specific requirements.
required: true
Expand Down
Loading