Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions preternatural-archive/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ inputs:
p12_password:
description: 'Password for the P12 certificate'
required: true
fuck-swift-syntax:
description: 'Enable the --fuck-swift-syntax flag for the archive command'
required: false
default: true
type: boolean
runs:
using: 'composite'
steps:
Expand Down Expand Up @@ -68,12 +73,21 @@ runs:
NOTARIZATION_APP_STORE_CONNECT_USERNAME: ${{ inputs.notarization_username }}
NOTARIZATION_APP_STORE_CONNECT_PASSWORD: ${{ inputs.notarization_password }}
run: |
# Construct the command as a string
PRETERNATURAL_CMD="script -q /dev/null preternatural archive"

if [ -n "${{ inputs.notarization_team_id }}" ]; then
script -q /dev/null preternatural archive --team-id "${{ inputs.notarization_team_id }}"
else
script -q /dev/null preternatural archive
PRETERNATURAL_CMD="$PRETERNATURAL_CMD --team-id "${{ inputs.notarization_team_id }}"
fi

if [ "${{ inputs.fuck-swift-syntax }}" == "true" ]; then
PRETERNATURAL_CMD="$PRETERNATURAL_CMD --fuck-swift-syntax"
fi

echo "Running preternatural archive command:"
echo "${PRETERNATURAL_CMD}"
eval ${PRETERNATURAL_CMD} 2>&1

- name: Find archive file
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions preternatural-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ inputs:
configurations:
description: 'Build configurations (array of: debug, release)'
required: false
default: '["debug", "release"]'
default: '["debug"]'
working-directory:
description: 'Directory to run the preternatural command from'
required: false
default: ''
fuck-swift-syntax:
description: 'Enable the --fuck-swift-syntax flag for the build command'
required: false
default: false
default: true
type: boolean

runs:
Expand Down
Loading