Skip to content

Commit 89e76e9

Browse files
committed
We can override stackhpc_cloud_tests_version by branch name but ${{ github.ref }} gives us refs/heads/branch_name - we want just "branch_name".
Try ${{ github.head_ref || github.ref_name }}
1 parent a7e9846 commit 89e76e9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/pr-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Pull request
22
on:
33
pull_request:
44
jobs:
5+
56
rocky9-ovs-aio-test:
67
name: aio (Rocky 9 OVS)
78
uses: stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-all-in-one.yml@stackhpc/2024.1
@@ -13,7 +14,8 @@ jobs:
1314
neutron_plugin: ovs
1415
OS_CLOUD: openstack
1516
#stackhpc_cloud_tests_version: ${{ github.ref }}
16-
stackhpc_cloud_tests_version: opensearch-dashboards-grafana
17+
stackhpc_cloud_tests_version: ${{ github.head_ref || github.ref_name }}
18+
#stackhpc_cloud_tests_version: opensearch-dashboards-grafana
1719
repository: stackhpc/stackhpc-kayobe-config
1820
github_ref: stackhpc/2024.1
1921
runner: arc-aio-cloud-tests-runner
@@ -30,7 +32,8 @@ jobs:
3032
neutron_plugin: ovn
3133
OS_CLOUD: openstack
3234
#stackhpc_cloud_tests_version: ${{ github.ref }}
33-
stackhpc_cloud_tests_version: opensearch-dashboards-grafana
35+
stackhpc_cloud_tests_version: ${{ github.head_ref || github.ref_name }}
36+
#stackhpc_cloud_tests_version: opensearch-dashboards-grafana
3437
repository: stackhpc/stackhpc-kayobe-config
3538
github_ref: stackhpc/2024.1
3639
runner: arc-aio-cloud-tests-runner

0 commit comments

Comments
 (0)