Skip to content

Commit e9daea9

Browse files
committed
fix: amek repository name dynamicly resoluted
Signed-off-by: Ondrej Dockal <[email protected]>
1 parent 7731ca3 commit e9daea9

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/e2e-main.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
name: Red Hat Account Extension E2E tests
4545
runs-on: ubuntu-22.04
4646
steps:
47+
4748
- uses: actions/checkout@v4
4849
if: github.event_name == 'workflow_dispatch'
4950
with:
@@ -56,6 +57,16 @@ jobs:
5657
with:
5758
path: podman-desktop-redhat-account-ext
5859

60+
- name: Setup default repository name
61+
env:
62+
EVENT: ${{ github.event_name }}
63+
run: |
64+
repository=podman-desktop-redhat-account-ext
65+
if [[ "$EVENT" == 'workflow_dispatch' ]]; then
66+
repository=${{ github.event.inputs.repositoryName }}
67+
fi
68+
echo "REPOSITORY=$repository" >> $GITHUB_ENV
69+
5970
# Checkout podman desktop
6071
- uses: actions/checkout@v4
6172
with:
@@ -90,7 +101,7 @@ jobs:
90101
yarn test:e2e:build
91102
92103
- name: Get yarn cache directory path
93-
working-directory: ./podman-desktop-redhat-account-ext
104+
working-directory: ${{ env.REPOSITORY }}
94105
id: yarn-cache-dir-path
95106
run: echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
96107

@@ -103,13 +114,13 @@ jobs:
103114
${{ runner.os }}-yarn-
104115
105116
- name: Execute yarn in Red Hat Account Extension
106-
working-directory: ./podman-desktop-redhat-account-ext
117+
working-directory: ${{ env.REPOSITORY }}
107118
run: |
108119
yarn add -D @podman-desktop/tests-playwright@next
109120
yarn --frozen-lockfile
110121
111122
- name: Run All E2E tests in Red Hat Account Extension
112-
working-directory: ./podman-desktop-redhat-account-ext
123+
working-directory: ${{ env.REPOSITORY }}
113124
env:
114125
PODMAN_DESKTOP_ARGS: ${{ github.workspace }}/podman-desktop
115126
run: yarn test:e2e

0 commit comments

Comments
 (0)