Skip to content

Add configuration via action inputs#4

Merged
akirk merged 8 commits intoakirk:mainfrom
obenland:update/config
Jul 25, 2025
Merged

Add configuration via action inputs#4
akirk merged 8 commits intoakirk:mainfrom
obenland:update/config

Conversation

@obenland
Copy link
Copy Markdown
Contributor

The basic idea is to support configuration through yml inputs, so we don't need to have a separate config file in the repository.

This is mostly AI-generated and I have no idea if this works or how to test it. How did you test the existing version so far?

Changes

  • Updated README and action.yml to document and support configuration through GitHub Action inputs, in addition to config files.
  • Refactored extract-wp-hooks.php to merge with config file values, and validate required settings.

obenland and others added 8 commits July 23, 2025 10:24
Updated README and action.yml to document and support configuration through environment variables and GitHub Action inputs, in addition to config files. Refactored extract-wp-hooks.php to prioritize environment variables, merge with config file values, and validate required settings. Improved error handling and documentation for configuration options.
Configuration is now only loaded from a JSON config file, simplifying setup and usage. Documentation and scripts have been updated to remove references and logic for environment variable configuration.
Refactors the determination of the GitHub blob URL from a separate workflow step into the config file creation block. This simplifies the workflow and ensures the blob URL is set directly when generating the config file.
Moved the configuration file creation step before cloning the wiki repository and extracting WordPress hooks. This ensures the configuration file is set up prior to repository operations.
The workflow now extracts the wiki directory from the configuration file using jq, and passes it between steps via outputs. This replaces the previous approach of using the input value directly, ensuring consistency with the config file and improving flexibility.
Copy link
Copy Markdown
Owner

@akirk akirk left a comment

Choose a reason for hiding this comment

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

Thank you!

@akirk akirk merged commit 3d9aedc into akirk:main Jul 25, 2025
1 check passed
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.

2 participants