1
0
Fork
You've already forked action-post-run
0
Enables executing custom commands once a workflow job has ended. (Forgejo fork) https://github.com/webiny/action-post-run
  • TypeScript 100%
Find a file
2024年01月26日 16:31:58 +01:00
.github/workflows Bump dependencies, switch to node16, and add simple smoke test ( #6 ) 2022年12月16日 14:36:34 +01:00
dist Bump dependencies, switch to node16, and add simple smoke test ( #6 ) 2022年12月16日 14:36:34 +01:00
docs chore: update docs 2020年07月27日 11:35:00 +02:00
.gitignore chore: initial commit 2020年07月27日 10:47:42 +02:00
.prettierrc.js chore: initial commit 2020年07月27日 10:47:42 +02:00
action.yml feat: upgrade from node16 to node20 ( #8 ) 2024年01月26日 16:29:36 +01:00
CONTRIBUTING.md chore: update docs 2020年07月27日 11:23:21 +02:00
main.ts chore: initial commit 2020年07月27日 10:47:42 +02:00
package.json Bump dependencies, switch to node16, and add simple smoke test ( #6 ) 2022年12月16日 14:36:34 +01:00
post.ts fix: correct inputs 2021年05月27日 17:02:19 +02:00
README.md wip: prepare 3.1.0 release 2024年01月26日 16:31:58 +01:00
tsconfig.json chore: initial commit 2020年07月27日 10:47:42 +02:00

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:

image

i️ Note the order of execution. The run: echo "this thing works again!" was executed before the run: echo "this thing works!" command.