-
Notifications
You must be signed in to change notification settings - Fork 9
GODRIVER-3797 Skip manual merge on dry run. #101
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,9 @@ inputs: | |
| ignored_branches: | ||
| description: Branches to ignore when merging up changes | ||
| required: true | ||
| dry_run: | ||
| description: Whether this is a dry run | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
|
|
@@ -36,7 +39,7 @@ runs: | |
| fallbackBranch: 'master' | ||
| ignoredBranches: ${{ inputs.ignored_branches }} | ||
| - name: "Manually merge up changes" | ||
| if: ${{ inputs.push_changes == 'true' && ! contains(fromJSON(inputs.ignored_branches), github.ref_name) && steps.get-next-branch.outputs.hasNextBranch }} | ||
| if: ${{ inputs.dry_run == 'false' && inputs.push_changes == 'true' && ! contains(fromJSON(inputs.ignored_branches), github.ref_name) && steps.get-next-branch.outputs.hasNextBranch }} | ||
|
||
| shell: bash | ||
| run: | | ||
| git checkout ${NEXT_BRANCH} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
dry_runinput is used in the conditional but is not defined in the inputs section of this action. This will cause the action to fail when invoked.To fix this, add the
dry_runinput definition to the inputs section, similar to how it's defined in other actions in the codebase (e.g., python/pre-publish/action.yml:18-20, ruby/publish/action.yml:23-25). The input should be required and have a description explaining its purpose.