Skip to content

Commit 96ac044

Browse files
authored
Setting token in different job in e2e tests (#475)
1 parent 25fe52c commit 96ac044

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/e2e-test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ jobs:
103103
fetch-depth: 0
104104
submodules: 'recursive'
105105

106+
- name: Set LINODE_TOKEN
107+
run: |
108+
echo "LINODE_TOKEN=${{ secrets[inputs.use_minimal_test_account == 'true' && 'MINIMAL_LINODE_TOKEN' || 'LINODE_TOKEN'] }}" >> $GITHUB_ENV
109+
106110
- name: Download kubectl and calicoctl for LKE clusters
107111
run: |
108112
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
@@ -132,6 +136,10 @@ jobs:
132136
run: |
133137
pip install linode-cli
134138
139+
- name: Set LINODE_TOKEN
140+
run: |
141+
echo "LINODE_TOKEN=${{ secrets[inputs.use_minimal_test_account == 'true' && 'MINIMAL_LINODE_TOKEN' || 'LINODE_TOKEN'] }}" >> $GITHUB_ENV
142+
135143
- name: Create Firewall and Attach to Instances
136144
run: |
137145
FIREWALL_ID=$(linode-cli firewalls create --label "e2e-fw-$(date +%s)" --rules.inbound_policy "DROP" --rules.outbound_policy "ACCEPT" --text --format=id --no-headers)

0 commit comments

Comments
 (0)