Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webiny/action-post-run
Enables executing custom commands once a workflow job has ended.
https://github.com/webiny/action-post-run
actions github post
Last synced: 8 days ago
JSON representation
Enables executing custom commands once a workflow job has ended.
- Host: GitHub
- URL: https://github.com/webiny/action-post-run
- Owner: webiny
- Created: 2020-07-27T08:37:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-26T15:32:50.000Z (10 months ago)
- Last Synced: 2024-10-26T10:45:09.973Z (20 days ago)
- Topics: actions, github, post
- Language: TypeScript
- Homepage:
- Size: 211 KB
- Stars: 19
- Watchers: 3
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# 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````yaml
name: Buildon:
push:
branches: [ master ]env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}jobs:
something:
name: Do something...
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: webiny/[email protected]
id: post-run-command
with:
run: echo "this thing works!"- uses: webiny/[email protected]
id: another-post-run-command
with:
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](./docs/action-results.png)
ℹ️ Note the order of execution. The `run: echo "this thing works again!"` was executed before the `run: echo "this thing works!"` command.