Skip to content

Commit d372abd

Browse files
committed
wip
1 parent 2c7900b commit d372abd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/update-swift-version.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ jobs:
2929
- name: Update Swift Version
3030
id: latest
3131
run: |
32+
set -ex
3233
UNAME=$(uname -m)
3334
curl -O "https://download.swift.org/swiftly/linux/swiftly-$UNAME.tar.gz"
3435
tar zxf "swiftly-$UNAME.tar.gz"
3536
latest=$(./swiftly list-available main-snapshot | grep main-snapshot | head -n 1 | awk '{print $1}')
3637
echo -n "$latest" > .swift-version
38+
if [[ -z "$(git status --porcelain .swift-version)" ]]; then
39+
echo "No changes. Exiting."
40+
exit 78 # neutral exit status
41+
fi
42+
git status
3743
3844
- name: Create branch
3945
run: |

0 commit comments

Comments
 (0)