Skip to content

Commit aeefec9

Browse files
use env to pass input and output parameters (#852)
* use env to pass input and output parameters * pass test_set input parameter in the env parameters --------- Co-authored-by: Ben Chatterton <[email protected]>
1 parent f5fcbb6 commit aeefec9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ on:
3838
type: string
3939
env:
4040
FX_CHANNEL: ${{ inputs.channel }}
41+
TEST_SET: ${{ inputs.test_set }}
4142
TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }}
4243
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }}
4344
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
@@ -67,12 +68,12 @@ jobs:
6768
- name: Select Test Set
6869
if: ${{ inputs.test_set != null }}
6970
run: |
70-
echo "STARFOX_SPLIT=${{ inputs.test_set }}" | Out-File -FilePath .env -Encoding utf8 -Append -Force
71+
echo "STARFOX_SPLIT=$TEST_SET" | Out-File -FilePath .env -Encoding utf8 -Append -Force
7172
shell: pwsh
7273
- name: Set Functional Split
7374
if: ${{ inputs.test_set == 'functional' }}
7475
run: |
75-
echo "STARFOX_SPLIT=${{ inputs.test_set }}1" | Out-File -FilePath .env -Encoding utf8 -Append -Force
76+
echo "STARFOX_SPLIT=$TEST_SET1" | Out-File -FilePath .env -Encoding utf8 -Append -Force
7677
- name: Install dependencies
7778
run: |
7879
mkdir -p artifacts;
@@ -173,10 +174,10 @@ jobs:
173174
echo "Running report for most recent Beta on MacOS";
174175
- name: Select Test Set
175176
if: ${{ inputs.test_set != null }}
176-
run: echo "STARFOX_SPLIT=${{ inputs.test_set }}" >> .env
177+
run: echo "STARFOX_SPLIT=$TEST_SET" >> .env
177178
- name: Set Functional Split
178179
if: ${{ inputs.test_set == 'functional' }}
179-
run: echo "STARFOX_SPLIT=${{ inputs.test_set }}1" >> .env
180+
run: echo "STARFOX_SPLIT=$TEST_SET1" >> .env
180181
- name: Set Environment (Manual)
181182
if: ${{ inputs.mac_installer_link }}
182183
run: |

0 commit comments

Comments
 (0)