Skip to content

Support a "DRY RUN" mode that can be used while testing #121

@joemcgill

Description

@joemcgill

Is your enhancement related to a problem? Please describe.

While implementing this action in a mono-repo setup for the Performance Lab plugin, we wanted to be able to do a dry run of the deployment workflow we created without actually pushing the committed changes to the WordPress SVN repo. To accomplish this we copied the deploy.sh file from this action into our repo and comment out the commit step while we were testing that our automated build/deploy process was working as expected.

Describe the solution you'd like

What would be better, is if this action supported a new DEBUG or DRY_RUN environment variable, which defaults to false, that would skip the final commit step when set to true. Ex:

if [[ "$DEBUG" != false ]]; then
  echo "➤ Committing files..."
  svn commit -m "Update to version $VERSION from GitHub" --no-auth-cache --non-interactive  --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
else
  echo "➤ Debug mode: Files not committed."
fi

Metadata

Metadata

Labels

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions