Skip to content

Commit d99378c

Browse files
authored
Merge pull request #18 from PreternaturalAI/aksh1t/ENG-1826
ENG-1826 Configure FUCK_SWIFT_SYNTAX for archive
2 parents 01cec3a + 01710ff commit d99378c

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

preternatural-archive/action.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2328
runs:
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: |

preternatural-build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2626
runs:

0 commit comments

Comments
 (0)