Document and demo Transport #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: List Devices Test | |
# 📜 https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
greet: | |
name: Find Device ID | |
runs-on: macos-13 | |
steps: | |
- name: Find iOS 17.2, iPhone 15 | |
run: | | |
curl \ | |
--silent \ | |
--show-error \ | |
--location https://raw.githubusercontent.com/dirtyhenry/swift-blocks/main/Scripts/ListDevices.swift \ | |
-o listDevices | |
chmod +x listDevices | |
DEVICE_ID=$(./listDevices "iOS 17.2" "iPhone 15") | |
echo "The output of the script was $DEVICE_ID" | |
echo "All available devices are:" | |
xcrun simctl list devices available |