feat: add working_dir option #122
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |