Skip to content

Commit ecf2f48

Browse files
authored
fix env variables...
1 parent e5a0677 commit ecf2f48

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build_app.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ on:
55
tags: [ develop ]
66
workflow_dispatch:
77

8+
env:
9+
SCHEME: AltServer
10+
811
jobs:
912
master_deploy:
1013
runs-on: macos-latest
1114

1215
steps:
1316
- name: Checkout project
1417
uses: actions/checkout@v2
15-
16-
- name: Find first scheme of default project
17-
run: |
18-
echo "::set-env name=SCHEME::$(xcodebuild -list -json | jq -r '.project.schemes[0]')"
1918

2019
- name: Set environment variables from project settings
2120
run: |
2221
function set-env-from-proj {
23-
echo "::set-env name=$1::$(xcodebuild -scheme "$SCHEME" -showBuildSettings | grep " $1 " | sed "s/[ ]*$1 = //")"
22+
echo "$1=$(xcodebuild -scheme "AltServer" -showBuildSettings | grep " $1 " | sed "s/[ ]*$1 = //")" >> $GITHUB_ENV
2423
}
2524
set-env-from-proj FULL_PRODUCT_NAME
2625
set-env-from-proj INSTALL_PATH

0 commit comments

Comments
 (0)