Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 27, 2024
1 parent 194dd8a commit 0d33491
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ jobs:
id: get_all_tests
run: |
# Run the script and capture its output
echo "We are about to get the output"
output=$(./scripts/test.sh)
echo "We just got the output"
# Output the result in a way that GitHub Actions can read
echo "We are about to put the output into the output"
echo "::set-output name=all_tests::$output"
echo "We have set the output. Here it is"
echo $ouput
echo "Here it is differently"
echo ${{steps.get_all_tests.output.all_tests}}
- name: Print the captured output
run: echo "${{ steps.get_all_tests.outputs.all_tests }}"
debug-generate-tests:
Expand Down Expand Up @@ -107,6 +114,8 @@ jobs:
EXAMPLE_DIRECTORIES="${EXAMPLE_DIRECTORIES//$'\n'/'%0A'}"
EXAMPLE_DIRECTORIES="${EXAMPLE_DIRECTORIES//$'\r'/'%0D'}"
echo "::set-output name=example_directories::$EXAMPLE_DIRECTORIES"
- name: Print the captured output
run: echo "${{ steps.example_directories.outputs.example_directories }}"
- id: should_run_tests
run: |
BRANCH_NAME="${{ github.head_ref }}"
Expand Down

0 comments on commit 0d33491

Please sign in to comment.