Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Swift version

Actions
Reads the current Swift version
v1.0.0
Star (1)

Swift Version Action

Deploy

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 use our SwiftyActions action.

Inputs

None

Outputs

version

The version of Swift that's currently active (e.g. 5.4.2).

Example Usage

Use the following snippet to read the current swift version:

uses: sersoft-gmbh/swift-version-action@v1

Swift version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Reads the current Swift version
v1.0.0

Swift version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.