Skip to content

Commit ba2a7fc

Browse files
Removed github.event.repository.parent.full_name usage since not available
1 parent a77d5d4 commit ba2a7fc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/docker-build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ on:
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

@@ -33,10 +33,9 @@ jobs:
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
@@ -48,9 +47,6 @@ jobs:
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

0 commit comments

Comments
 (0)