We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c7900b commit d372abdCopy full SHA for d372abd
.github/workflows/update-swift-version.yml
@@ -29,11 +29,17 @@ jobs:
29
- name: Update Swift Version
30
id: latest
31
run: |
32
+ set -ex
33
UNAME=$(uname -m)
34
curl -O "https://download.swift.org/swiftly/linux/swiftly-$UNAME.tar.gz"
35
tar zxf "swiftly-$UNAME.tar.gz"
36
latest=$(./swiftly list-available main-snapshot | grep main-snapshot | head -n 1 | awk '{print $1}')
37
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
43
44
- name: Create branch
45
0 commit comments