executable-wrapper
ActionsGitHub action that wraps executables and returns the stdout, stderr and exit code
v1.0.9
LatestBy Maddog2050
Tags
(1)This GitHub action wraps executables and returns the stdout, stderr and exit code so that you can use the output in later steps.
See action.yml.
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: terraform-linters/setup-tflint@v1
with:
tflint_version: latest
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: maddog2050/executable-wrapper@v1
id: tflint
with:
run_command: tflint --version
continue-on-error: true
- uses: actions/github-script@v5
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: steps.tflint.outputs.stdout
})
- if: steps.tflint.outputs.exitcode != '0'
run: exit 1The scripts and documentation in this project are released under the MIT license.
executable-wrapper is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.