-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,17 @@ | |
|
||
Provides [Swift](https://swift.org) support for [GitHub Actions](https://github.com/features/actions). | ||
|
||
## Usage | ||
## Inputs | ||
|
||
To begin using this action, you only need to define `args` in the GitHub Action, which will be automatically forwarded to the `swift` binary (eg. `swift <args>`). | ||
### `swift-action` | ||
|
||
If you need more control over the process, you can define `runs` instead, which will override the `swift` binary (eg. `<runs> <args>`). | ||
**Required** Swift action to run. Default `"build"`. | ||
|
||
```hcl | ||
workflow "main" { | ||
on = "push" | ||
resolves = ["swift_build"] | ||
} | ||
## Usage | ||
|
||
action "swift_build" { | ||
uses = "Didstopia/[email protected]" | ||
args = "build" | ||
} | ||
``` | ||
uses: Didstopia/[email protected] | ||
with: | ||
swift-action: 'build' | ||
|
||
To use the latest development version of this action, change the version number to `master` (eg. `Didstopia/SwiftAction@master`). | ||
|
||
|