{"id":23613658,"url":"https://github.com/freckle/github-workflow-commands","last_synced_at":"2025-05-12T21:42:26.844Z","repository":{"id":247467632,"uuid":"823397204","full_name":"freckle/github-workflow-commands","owner":"freckle","description":"For printing workflow commands in GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-03-21T22:32:46.000Z","size":65,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-02T20:04:30.778Z","etag":null,"topics":["ghvm-managed"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freckle.png","metadata":{"files":{"readme":"README.lhs","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-03T00:57:00.000Z","updated_at":"2025-02-07T20:45:11.000Z","dependencies_parsed_at":"2024-07-09T00:17:35.199Z","dependency_job_id":"8196fad5-dce6-49cb-857e-2ddab99fd77e","html_url":"https://github.com/freckle/github-workflow-commands","commit_stats":null,"previous_names":["freckle/github-workflow-commands"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fgithub-workflow-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fgithub-workflow-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fgithub-workflow-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fgithub-workflow-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freckle","download_url":"https://codeload.github.com/freckle/github-workflow-commands/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253827807,"owners_count":21970586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ghvm-managed"],"created_at":"2024-12-27T17:18:37.667Z","updated_at":"2025-05-12T21:42:26.817Z","avatar_url":"https://github.com/freckle.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-workflow-commands\n\nFor printing workflow commands in GitHub Actions.\n\nSee [Workflow commands for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions).\n\nThe code herein is based on [GitHub Actions Toolkit](https://github.com/actions/toolkit/tree/main/packages/core/src).\n\n---\n\n\u003c!--\n```haskell\nmodule Main (main) where\n\nimport Prelude\n\nimport Text.Markdown.Unlit ()\n```\n--\u003e\n\n```haskell\nimport qualified GitHub.Workflow.Command as GH\nimport Control.Lens ((\u0026), (?~))\n```\n\nAn annotation is at minimum just a string.\n\n```haskell\nexample1 :: IO ()\nexample1 =\n  GH.executeCommand $\n    GH.error \"Something failed.\"\n```\n\nAn annotation can also include a location.\n\n```haskell\nsomeLocation :: GH.Location\nsomeLocation =\n  GH.inFile \"app.js\"\n    \u0026 GH.position ?~\n        ( GH.atLine 13\n            \u0026 GH.extent ?~ GH.ToLine 16\n        )\n```\n\n```haskell\nexample2 :: IO ()\nexample2 =\n  GH.executeCommand $\n    GH.warning \"Something seems amiss here.\"\n      \u0026 GH.location ?~ someLocation\n```\n\n\u003c!--\n```haskell\nmain :: IO ()\nmain = GH.suspendCommands $ example1 \u003e\u003e example2\n```\n--\u003e\n\n---\n\n[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Fgithub-workflow-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreckle%2Fgithub-workflow-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Fgithub-workflow-commands/lists"}