Enables executing custom commands once a workflow job has ended. (Forgejo fork) https://github.com/webiny/action-post-run
- TypeScript 100%
|
|
||
|---|---|---|
| .github/workflows | Bump dependencies, switch to node16, and add simple smoke test ( #6 ) | |
| dist | Bump dependencies, switch to node16, and add simple smoke test ( #6 ) | |
| docs | chore: update docs | |
| .gitignore | chore: initial commit | |
| .prettierrc.js | chore: initial commit | |
| action.yml | feat: upgrade from node16 to node20 ( #8 ) | |
| CONTRIBUTING.md | chore: update docs | |
| main.ts | chore: initial commit | |
| package.json | Bump dependencies, switch to node16, and add simple smoke test ( #6 ) | |
| post.ts | fix: correct inputs | |
| README.md | wip: prepare 3.1.0 release | |
| tsconfig.json | chore: initial commit | |
Post-Run GitHub action
A simple GitHub action that enables running post-run steps, once a workflow job has ended.
Inputs
run
Required A command that needs to be run. Default echo "This is a post-run step...".
Example usage
Latest version: 3.1.0
name:Buildon:push:branches:[master ]env:GH_TOKEN:${{ secrets.GH_TOKEN }}jobs:something:name:Do something...runs-on:ubuntu-lateststeps:- uses:actions/checkout@v2- uses:webiny/action-post-run@3.1.0id:post-run-commandwith:run:echo "this thing works!"- uses:webiny/action-post-run@3.1.0id:another-post-run-commandwith:run:echo "this thing works again!"working-directory:not-required-but-you-can-provide-it- name:'Running an non-existing command will fail...'run:run something that does not exist;This above configuration will produce the following:
i️ Note the order of execution. The run: echo "this thing works again!" was executed before the run: echo "this thing works!" command.