You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,20 +18,20 @@
18
18
To run the action with the latest swift version available, simply add the action as a step in your workflow:
19
19
20
20
```yaml
21
-
- uses: fwal/setup-swift@master
21
+
- uses: fwal/setup-swift@v1
22
22
```
23
23
24
24
After the environment is configured you can run swift commands using the standard [`run`](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepsrun) step:
25
25
```yaml
26
-
- uses: fwal/setup-swift@master
26
+
- uses: fwal/setup-swift@v1
27
27
- name: Get swift version
28
-
run: swift --version # Swift 5.1.1
28
+
run: swift --version # Swift 5.2.2
29
29
```
30
30
31
31
A specific Swift version can be set using the `swift-version` input:
32
32
33
33
```yaml
34
-
- uses: fwal/setup-swift@master
34
+
- uses: fwal/setup-swift@v1
35
35
with:
36
36
swift-version: "5.1.0"
37
37
- name: Get swift version
@@ -48,7 +48,7 @@ strategy:
48
48
os: [ubuntu-latest, macos-latest]
49
49
swift: ["5.1.0", "4.2.4"]
50
50
steps:
51
-
- uses: fwal/setup-swift@master
51
+
- uses: fwal/setup-swift@v1
52
52
with:
53
53
swift-version: ${{ matrix.swift }}
54
54
- name: Get swift version
@@ -65,7 +65,7 @@ For example, Swift is available as version `5.1` but this will be interpreted as
65
65
In other words specifying...
66
66
- `"5.1.0"`will resolve to version `5.1`
67
67
- `"5.1"`will resolve to latest patch version (aka `5.1.1`)
68
-
- `"5"`will resolve to latest minor and patch version (aka `5.1.1`)
68
+
- `"5"`will resolve to latest minor and patch version (aka `5.2.2`)
0 commit comments