Skip to content

feat: add working_dir option #125

feat: add working_dir option

feat: add working_dir option #125

Workflow file for this run

name: "Integration Test"
on:
pull_request:
push:
branches:
- main
- "releases/*"
jobs:
# test action works running from the graph
test:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
command: echo "printing from stdout"
template: "Testing command\n%command%"
update-text: "Testing command"
- uses: ./
with:
command: node -e "process.stdout.write('testing Out');process.stderr.write('testing Error')"
template: "Testing stdout/stderr\n```\n%stdout%\n```\n```\n%stderr%\n```"
update-text: "Testing stdout/stderr"
test-working-dir:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: mkdir "sub_dir"
- uses: ./
with:
command: pwd
template: "Testing working_dir\n```\n%stdout%\n```"
update-text: "Testing working_dir"
working-dir: sub_dir