File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ inputs:
2020 p12_password :
2121 description : ' Password for the P12 certificate'
2222 required : true
23+ fuck-swift-syntax :
24+ description : ' Enable the --fuck-swift-syntax flag for the archive command'
25+ required : false
26+ default : true
27+ type : boolean
2328runs :
2429 using : ' composite'
2530 steps :
@@ -68,12 +73,21 @@ runs:
6873 NOTARIZATION_APP_STORE_CONNECT_USERNAME : ${{ inputs.notarization_username }}
6974 NOTARIZATION_APP_STORE_CONNECT_PASSWORD : ${{ inputs.notarization_password }}
7075 run : |
76+ # Construct the command as a string
77+ PRETERNATURAL_CMD="script -q /dev/null preternatural archive"
78+
7179 if [ -n "${{ inputs.notarization_team_id }}" ]; then
72- script -q /dev/null preternatural archive --team-id "${{ inputs.notarization_team_id }}"
73- else
74- script -q /dev/null preternatural archive
80+ PRETERNATURAL_CMD="$PRETERNATURAL_CMD --team-id "${{ inputs.notarization_team_id }}"
81+ fi
82+
83+ if [ "${{ inputs.fuck-swift-syntax }}" == "true" ]; then
84+ PRETERNATURAL_CMD="$PRETERNATURAL_CMD --fuck-swift-syntax"
7585 fi
7686
87+ echo "Running preternatural archive command:"
88+ echo "${PRETERNATURAL_CMD}"
89+ eval ${PRETERNATURAL_CMD} 2>&1
90+
7791 - name : Find archive file
7892 shell : bash
7993 run : |
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ inputs:
1212 configurations :
1313 description : ' Build configurations (array of: debug, release)'
1414 required : false
15- default : ' ["debug", "release" ]'
15+ default : ' ["debug"]'
1616 working-directory :
1717 description : ' Directory to run the preternatural command from'
1818 required : false
1919 default : ' '
2020 fuck-swift-syntax :
2121 description : ' Enable the --fuck-swift-syntax flag for the build command'
2222 required : false
23- default : false
23+ default : true
2424 type : boolean
2525
2626runs :
You can’t perform that action at this time.
0 commit comments