Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srz-zumix/post-run-action
This action runs a script in the post process. It is assumed that it will be called and used with a composite action that cannot perform post processing.
https://github.com/srz-zumix/post-run-action
actions github-actions
Last synced: about 2 months ago
JSON representation
This action runs a script in the post process. It is assumed that it will be called and used with a composite action that cannot perform post processing.
- Host: GitHub
- URL: https://github.com/srz-zumix/post-run-action
- Owner: srz-zumix
- License: mit
- Created: 2024-02-14T04:36:46.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T04:26:55.000Z (2 months ago)
- Last Synced: 2024-11-08T05:25:35.114Z (2 months ago)
- Topics: actions, github-actions
- Language: TypeScript
- Homepage:
- Size: 1.44 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# post-run-action
This action runs a script in the post process.
It is assumed that it will be called and used with a composite action that cannot perform post processing.## Usage
See [action.yml](./action.yml)
```yaml
- name: Post Action
uses: srz-zumix/post-run-action@v2
with:
# custom shell
# Default : bash -e {0}
# bash : bash --noprofile --norc -eo pipefail {0}
# custom : e.g. `bash -l -ex {0}`
# see https://docs.github.com/ja/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
shell: bash -ex {0}
# post run script text
post-run: |
echo "test" | tee "${{ runner.temp }}/test.txt"
if [ -f "${{ runner.temp }}/post.sh" ]; then
"${{ runner.temp }}/post.sh"
fi
- name: Post Action (Python)
id: test-python
uses: srz-zumix/post-run-action@v2
with:
shell: python
post-run: |
print("Hello, world!")```