Skip to content

Commit bd58111

Browse files
committed
Clean vars
1 parent f39f3d7 commit bd58111

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/tests-integration-reusable.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# secrets.CLIENT_SECRET
44
# secrets.GITHUB_TOKEN
55
# secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN
6-
# vars.SHEPHERD_POOL_NAME
6+
# vars.TEST_FLAKE_ATTEMPTS
77

88
name: "pvt: run integration tests"
99

@@ -25,6 +25,7 @@ on:
2525
lease-namespace:
2626
required: false
2727
type: string
28+
default: 'tas-devex'
2829
gitRef:
2930
type: string
3031
default: ${{github.event.workflow_run.head_sha}}
@@ -72,8 +73,9 @@ jobs:
7273

7374
- name: Install Tools
7475
env:
75-
account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
76-
namespace: ${{ inputs.lease-namespace || vars.POOL_NAMESPACE || 'tas-devex' }}
76+
account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
77+
lease_namespace: ${{ inputs.lease-namespace }}
78+
lease_id: ${{ inputs.lease-id }}
7779
run: |
7880
go version
7981
@@ -107,7 +109,7 @@ jobs:
107109
apt-get install -y build-essential unzip
108110
109111
shepherd login service-account ${account_token}
110-
shepherd get lease ${{ inputs.lease-id }} --namespace tas-devex --json | jq .output > metadata.json
112+
shepherd get lease ${lease_id} --namespace ${lease_namespace} --json | jq .output > metadata.json
111113
112114
- name: Add CATS config
113115
if: ${{ inputs.name == 'cats' }}

.github/workflows/tests-integration.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ on:
5757
- ".golangci.json"
5858

5959
env:
60-
SHEPHERD_LEASE_ID: ${{ inputs.lease_id || vars.SHEPHERD_LEASE_ID}}
60+
SHEPHERD_LEASE_ID: ${{ inputs.lease_id }}
6161

6262
jobs:
6363

@@ -314,10 +314,10 @@ jobs:
314314
steps:
315315
- name: unclaim
316316
env:
317-
account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
318-
namespace: ${{ vars.POOL_NAMESPACE || 'tas-devex' }}
317+
account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
318+
pool_namespace: ${{ vars.POOL_NAMESPACE || 'tas-devex' }}
319319
run: |
320320
shepherd login service-account ${account_token}
321321
set -x
322322
shepherd delete lease ${{ needs.claim-env.outputs.leaseid }} \
323-
--namespace ${namespace}
323+
--namespace ${pool_namespace}

0 commit comments

Comments
 (0)