For printing workflow commands in GitHub Actions.
Seehttps://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
[Index] [Quick Jump]
For package maintainers and hackage trustees
Candidates
| Versions[RSS] | 0.0.0.0,0.0.1.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.16.4.0 && <5),bytestring (>=0.11.4.0),containers (>=0.6.5.1),lens (>=5.1.1),MonadRandom (>=0.5.3),text (>=1.2.5.0) [details] |
| License | MIT |
| Author | |
| Maintainer | Freckle Education |
| Category | GitHub |
| Home page | https://github.com/freckle/github-workflow-commands#readme |
| Bug tracker | https://github.com/freckle/github-workflow-commands/issues |
| Source repo | head: git clonehttps://github.com/freckle/github-workflow-commands |
| Uploaded | byPatrickBrisbin at2024-10-04T17:25:04Z |
| Distributions | NixOS:0.0.1.0 |
| Downloads | 84 total (2 in the last 30 days) |
| Rating | (no votes yet)[estimated byBayesian average] |
| Your Rating |
|
| Status | Docs available[build log] Last success reported on 2024-10-04[all 1 reports] |
For printing workflow commands in GitHub Actions.
SeeWorkflow commands for GitHub Actions.
The code herein is based onGitHub Actions Toolkit.
import qualified GitHub.Workflow.Command as GHimport Control.Lens ((&), (?~))An annotation is at minimum just a string.
example1 :: IO ()example1 = GH.executeCommand $ GH.error "Something failed."An annotation can also include a location.
someLocation :: GH.LocationsomeLocation = GH.inFile "app.js" & GH.position ?~ ( GH.atLine 13 & GH.extent ?~ GH.ToLine 16 )example2 :: IO ()example2 = GH.executeCommand $ GH.warning "Something seems amiss here." & GH.location ?~ someLocation