Skip to content

Commit 4d8b8b3

Browse files
authored
Update e2e-main.yaml
1 parent a014b3c commit 4d8b8b3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/e2e-main.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,16 @@ jobs:
5252
runs-on: ubuntu-24.04
5353
env:
5454
MODE: ${{ inputs.mode }}
55+
REPO: ${{ github.event.inputs.repositoryName && 'podman-desktop-redhat-account-ext' }}
56+
ORGANIZATION: ${{ github.event.inputs.organization && 'redhat-developer' }}
57+
BRANCH: ${{ github.event.inputs.branch && 'main' }}
5558
steps:
5659
- uses: actions/checkout@v4
5760
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_run'
5861
with:
59-
repository: ${{ github.event.inputs.organization }}/${{ github.event.inputs.repositoryName }}
60-
ref: ${{ github.event.inputs.branch }}
61-
path: ${{ github.event.inputs.repositoryName }}
62+
repository: ${{ env.ORGANIZATION }}/${{ env.REPO }}
63+
ref: ${{ env.BRANCH }}
64+
path: ${{ env.REPO }}
6265

6366
- uses: actions/checkout@v4
6467
if: github.event_name == 'push'
@@ -71,7 +74,7 @@ jobs:
7174
run: |
7275
repository=podman-desktop-redhat-account-ext
7376
if [[ "$EVENT" == 'workflow_dispatch' || "$EVENT" == 'workflow_run' ]]; then
74-
repository=${{ github.event.inputs.repositoryName }}
77+
repository=${{ env.REPO }}
7578
fi
7679
echo "REPOSITORY=$repository" >> $GITHUB_ENV
7780

0 commit comments

Comments
 (0)