You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Run and post run Action
v1.1.0
A simple GitHub action that allows you to execute commands on place and in post-run, once a workflow job has ended.
jobs:
run-some-action:
name: Run action
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Run this action
uses: gacts/run-and-post-run@v1
with:
run: echo "First"
"(can be multiline)"
post: |
echo "First post"
echo "(can run multiply commands)"
- name: Run this action with only post
uses: gacts/run-and-post-run@v1
with:
post: echo "Second post"
This above configuration will produce the following:
Following inputs can be used as step.with
keys:
Name | Type | Default | Required | Description |
---|---|---|---|---|
run |
string or list |
no | A commands that needs to be run in place. | |
post |
string or list |
yes | A commands that needs to be run once a workflow job has ended. | |
working-directory |
string |
no | A working directory from which the command needs to be run. |
New versions releasing scenario:
- Make required changes in the changelog file
- Build the action distribution (
make build
oryarn build
) - Commit and push changes (including
dist
directory changes - this is important) into themain
branch - Publish new release using repo releases page (git tag should follow
vX.Y.Z
format)
Major and minor git tags (v1
and v1.2
if you publish v1.2.Z
release) will be updated automatically.
If you find any action errors, please, make an issue in the current repository.
This is open-sourced software licensed under the MIT License.