refactor(ci): adopt wp-git-action 2.2.0 commit-message-from#48
Open
dschmidt wants to merge 1 commit into
Open
Conversation
3e60202 to
8cb0ab8
Compare
Drop the YAML-substitution workaround for commit metadata and let the plugin read the variables from its own environment instead. - Pin quay.io/thegeeklab/wp-git-action:v2.2.0 (introduces commit-message-from in thegeeklab/wp-git-action#357). - Replace 'message: ${CI_COMMIT_MESSAGE}' with 'commit-message-from: CI_COMMIT_MESSAGE'. The plugin reads the env var at runtime, so the value is no longer spliced into YAML and cannot break on ':' or '"' in the commit subject. - Drop the explicit 'author_name' and 'author_email' settings. The plugin already falls back to CI_COMMIT_AUTHOR and CI_COMMIT_AUTHOR_EMAIL via its built-in Sources.
8cb0ab8 to
49d5b2c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drops the YAML-substitution workaround for commit metadata and lets wp-git-action v2.2.0 read the variables from its own environment instead.
quay.io/thegeeklab/wp-git-action:v2.2.0, which introducescommit-message-from(thegeeklab/wp-git-action#357).message: ${CI_COMMIT_MESSAGE}withcommit-message-from: CI_COMMIT_MESSAGE. The plugin reads the env var at runtime, so the value is no longer spliced into YAML and cannot break on a:or"in the commit subject.author_nameandauthor_emailsettings. The plugin already falls back toCI_COMMIT_AUTHORandCI_COMMIT_AUTHOR_EMAILvia its built-inSources.Applies to all four
.woodpecker/build-*.yamlpipelines.