{"id":26493762,"url":"https://github.com/gacts/run-and-post-run","last_synced_at":"2025-03-20T09:57:11.827Z","repository":{"id":166293776,"uuid":"617991574","full_name":"gacts/run-and-post-run","owner":"gacts","description":"🚀 A simple GitHub action that allows you to execute commands on place and in post-run, once a workflow job has ended.","archived":false,"fork":false,"pushed_at":"2025-03-19T10:34:36.000Z","size":327,"stargazers_count":33,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-19T11:24:40.530Z","etag":null,"topics":["actions","defer","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/gacts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-23T14:31:30.000Z","updated_at":"2025-03-06T15:11:51.000Z","dependencies_parsed_at":"2024-01-02T01:12:36.390Z","dependency_job_id":"cbc5a0aa-7eb8-405d-ae68-1d2f689e433f","html_url":"https://github.com/gacts/run-and-post-run","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacts%2Frun-and-post-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacts%2Frun-and-post-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacts%2Frun-and-post-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacts%2Frun-and-post-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gacts","download_url":"https://codeload.github.com/gacts/run-and-post-run/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244591484,"owners_count":20477709,"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":["actions","defer","github-actions"],"created_at":"2025-03-20T09:57:11.181Z","updated_at":"2025-03-20T09:57:11.818Z","avatar_url":"https://github.com/gacts.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/44036562?s=200\u0026v=4\" alt=\"Logo\" width=\"90\" /\u003e\n\u003c/p\u003e\n\n# Run and post run Action\n\n![Release version][badge_release_version]\n[![Build Status][badge_build]][link_build]\n[![License][badge_license]][link_license]\n\nA simple GitHub action that allows you to execute commands on place and in post-run, once a workflow job has ended.\n\n[Linked GitHub issue][community_issue].\n\n## Usage\n\n```yaml\njobs:\n  run-some-action:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Run this action\n        uses: gacts/run-and-post-run@v1\n        with:\n          run: echo \"First\"\n              \"(can be multiline)\"\n          post: |\n            echo \"First post\"\n            echo \"(can run multiply commands)\"\n            ls -la /tmp \\\n              /bin /opt\n\n      - name: Post command only\n        uses: gacts/run-and-post-run@v1\n        with:\n          post: echo \"Second post\"\n```\n\nThis above configuration will produce the following:\n\n![CI output example](https://github.com/gacts/run-and-post-run/assets/7326800/a73d2138-c773-494a-9922-2ae182ba87d5)\n\nMore examples can be found in the [tests](./.github/workflows/tests.yml).\n\n## Customizing\n\n### Inputs\n\nThe following inputs can be used as `step.with` keys:\n\n| Name                |        Type        | Default | Required | Description                                                                |\n|---------------------|:------------------:|:-------:|:--------:|----------------------------------------------------------------------------|\n| `run`               | `string` or `list` |         |    no    | A commands that needs to be run in place                                   |\n| `post`              | `string` or `list` |         |   yes    | A commands that needs to be run once a workflow job has ended              |\n| `working-directory` |      `string`      |         |    no    | A working directory from which the command needs to be run                 |\n| `shell`             |      `string`      | `bash`  |    no    | A shell to use for executing `run` commands                                |\n| `post-shell`        |      `string`      |         |    no    | A shell to use for executing `post` commands. Defaults to value of `shell` |\n\n## Releasing\n\nTo release a new version:\n\n- Build the action distribution (`make build` or `npm run build`).\n- Commit and push changes (including `dist` directory changes - this is important) to the `master|main` branch.\n- Publish the new release using the repo releases page (the git tag should follow the `vX.Y.Z` format).\n\nMajor and minor git tags (`v1` and `v1.2` if you publish a `v1.2.Z` release) will be updated automatically.\n\n\u003e [!TIP]\n\u003e Use [Dependabot](https://bit.ly/45zwLL1) to keep this action updated in your repository.\n\n## Support\n\n[![Issues][badge_issues]][link_issues]\n[![Pull Requests][badge_pulls]][link_pulls]\n\nIf you find any errors in the action, please [create an issue][link_create_issue] in this repository.\n\n## License\n\nThis is open-source software licensed under the [MIT License][link_license].\n\n[badge_build]:https://img.shields.io/github/actions/workflow/status/gacts/run-and-post-run/tests.yml?branch=main\u0026maxAge=30\n[badge_release_version]:https://img.shields.io/github/release/gacts/run-and-post-run.svg?maxAge=30\n[badge_license]:https://img.shields.io/github/license/gacts/run-and-post-run.svg?longCache=true\n[badge_release_date]:https://img.shields.io/github/release-date/gacts/run-and-post-run.svg?maxAge=180\n[badge_commits_since_release]:https://img.shields.io/github/commits-since/gacts/run-and-post-run/latest.svg?maxAge=45\n[badge_issues]:https://img.shields.io/github/issues/gacts/run-and-post-run.svg?maxAge=45\n[badge_pulls]:https://img.shields.io/github/issues-pr/gacts/run-and-post-run.svg?maxAge=45\n\n[link_build]:https://github.com/gacts/run-and-post-run/actions\n[link_license]:https://github.com/gacts/run-and-post-run/blob/main/LICENSE\n[link_issues]:https://github.com/gacts/run-and-post-run/issues\n[link_create_issue]:https://github.com/gacts/run-and-post-run/issues/new\n[link_pulls]:https://github.com/gacts/run-and-post-run/pulls\n\n[community_issue]:https://github.com/orgs/community/discussions/26743\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgacts%2Frun-and-post-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgacts%2Frun-and-post-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgacts%2Frun-and-post-run/lists"}