File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1212 upstream_repo :
1313 description : ' Optional: Override upstream repository (owner/repo). Defaults to the repository this was forked from if not set.'
1414 required : false
15- type : string
15+ default : ' plantbreeding/brapi-Java-ProdServer '
1616 upstream_pr_number :
17- description : ' Required if merging an upstream PR: PR number from the upstream repository to merge into develop for this build.'
17+ description : ' Required if merging an upstream PR: PR number from the upstream repository to merge into develop for this build. ex: 11 '
1818 required : false # Still false overall, but logic will require it if this feature is used.
1919 type : string
2020
3333 # This step runs if a PR number is provided AND (an upstream_repo input is given OR a parent repo full_name is available)
3434 if : |
3535 github.event.inputs.upstream_pr_number &&
36- ( github.event.inputs.upstream_repo || github.event.repository.parent.full_name)
36+ github.event.inputs.upstream_repo
3737 run : |
3838 UPSTREAM_REPO_SPECIFIED="${{ github.event.inputs.upstream_repo }}"
39- UPSTREAM_REPO_PARENT="${{ github.event.repository.parent.full_name }}"
4039 UPSTREAM_PR_NUMBER="${{ github.event.inputs.upstream_pr_number }}"
4140
4241 if [[ -z "$UPSTREAM_PR_NUMBER" ]]; then
4847 if [[ -n "$UPSTREAM_REPO_SPECIFIED" ]]; then
4948 TARGET_UPSTREAM_REPO="$UPSTREAM_REPO_SPECIFIED"
5049 echo "Using specified upstream repository: $TARGET_UPSTREAM_REPO"
51- elif [[ -n "$UPSTREAM_REPO_PARENT" ]]; then
52- TARGET_UPSTREAM_REPO="$UPSTREAM_REPO_PARENT"
53- echo "Using parent repository as upstream: $TARGET_UPSTREAM_REPO"
5450 else
5551 echo "Error: Upstream PR number '$UPSTREAM_PR_NUMBER' was provided, but no upstream_repo was specified and parent repository could not be determined."
5652 exit 1
You can’t perform that action at this time.
0 commit comments