Skip to content

Commit

Permalink
Add some debug logs to provisioning actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wmcginty committed Apr 11, 2024
1 parent d70c2bc commit 52b8263
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ runs:
run: |
IFS=$'\n'
profile_list=(${{ inputs.profiles }})
count=0
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
for profile_string in "${profile_list[@]}"; do
Expand All @@ -56,8 +57,11 @@ runs:
# Decode the base64 string and write it to file in the Provisioning Profiles directory
md5_hash=$(echo -n "$profile_string" | md5)
echo -n $profile_string | base64 --decode -o ~/Library/MobileDevice/Provisioning\ Profiles/file-$md5_hash.mobileprovision
count=$((count + 1))
done
echo "Successfully moved $count profiles."
- shell: bash
id: import_certificate
if: ${{ inputs.signing_certificate != '' && inputs.signing_certificate_password != '' }}
Expand All @@ -84,6 +88,7 @@ runs:
fi
else
security create-keychain -p "$keychain_password" "$keychain_name"
echo "Successfully created keychain: $keychain_name."
fi
# Set the keychain as the default keychain
Expand All @@ -96,6 +101,7 @@ runs:
md5_hash=$(echo -n "${{ inputs.signing_certificate }}" | md5)
base64 --decode <<< "${{ inputs.signing_certificate }}" > $RUNNER_TEMP/certificate-$md5_hash.p12
security import $RUNNER_TEMP/certificate-$md5_hash.p12 -k "$keychain_name" -P "${{ inputs.signing_certificate_password }}" -T /usr/bin/codesign
echo "Successfully imported certificate with MD5: $md5_hash."
# Set the Key Partition List
security set-key-partition-list -S apple-tool:,apple: -s -k "$keychain_password" "$keychain_name"
Expand Down

0 comments on commit 52b8263

Please sign in to comment.