Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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: Build

on:
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.