Skip to content

Commit

Permalink
Configured iOS screenshot workflows to use partner API token
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasberglund committed Jun 10, 2024
1 parent a855035 commit 5ddb8d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ios-screenshots-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
env:
SOURCE_PACKAGES_PATH: .spm
TEST_ACCOUNT: ${{ secrets.IOS_TEST_ACCOUNT_NUMBER }}
PARTNER_API_TOKEN: ${{ secrets.STAGEMOLE_PARTNER_AUTH }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -43,7 +44,12 @@ jobs:
cp PacketTunnel.xcconfig.template PacketTunnel.xcconfig
cp Screenshots.xcconfig.template Screenshots.xcconfig
cp Api.xcconfig.template Api.xcconfig
sed -i "" "s/MULLVAD_ACCOUNT_TOKEN = /MULLVAD_ACCOUNT_TOKEN = $TEST_ACCOUNT/g" Screenshots.xcconfig
sed -i "" \
"s/MULLVAD_ACCOUNT_TOKEN = /MULLVAD_ACCOUNT_TOKEN = $TEST_ACCOUNT/g" \
Screenshots.xcconfig
sed -i "" \
"/PARTNER_API_TOKEN =/ s#= .*#= $PARTNER_API_TOKEN#" \
UITests.xcconfig
working-directory: ios/Configurations

- name: Bundle
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ios-screenshots-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
env:
SOURCE_PACKAGES_PATH: .spm
TEST_ACCOUNT: ${{ secrets.IOS_TEST_ACCOUNT_NUMBER }}
PARTNER_API_TOKEN: ${{ secrets.STAGEMOLE_PARTNER_AUTH }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -60,7 +61,12 @@ jobs:
cp Screenshots.xcconfig.template Screenshots.xcconfig
cp Api.xcconfig.template Api.xcconfig
cp UITests.xcconfig.template UITests.xcconfig
sed -i "" "s/MULLVAD_ACCOUNT_TOKEN = /MULLVAD_ACCOUNT_TOKEN = $TEST_ACCOUNT/g" Screenshots.xcconfig
sed -i "" \
"s/MULLVAD_ACCOUNT_TOKEN = /MULLVAD_ACCOUNT_TOKEN = $TEST_ACCOUNT/g" \
Screenshots.xcconfig
sed -i "" \
"/PARTNER_API_TOKEN =/ s#= .*#= $PARTNER_API_TOKEN#" \
UITests.xcconfig
working-directory: ios/Configurations

- name: Install xcbeautify
Expand Down

0 comments on commit 5ddb8d5

Please sign in to comment.