This action reads the current Swift version.
Note:
This action does not install or change the current Swift version. It just reads it.
To change the Swift version on macOS, use xcode-select to select the corresponding Xcode version (or use an action like maxim-lobanov/setup-xcode).
To install Swift on Linux, you can either use containers, or use Swiftly.
There is also a GitHub action for Swiftly.
None
The version of Swift that's currently active (e.g. 6.2.1).
Use the following snippet to read the current swift version:
uses: sersoft-gmbh/swift-version-action@v4