Skip to content

Commit

Permalink
ci: add post-run
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Dec 3, 2024
1 parent 0b2f0f2 commit 2f5dfd0
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Execute run-everything.sh
id: run_script
run: |
./coprocessor/scripts/run-everything.sh 2>&1 | tee script_output.log
./coprocessor/scripts/run_everything.sh 2>&1 | tee script_output.log
echo "exit_code=${PIPESTATUS[0]}" >> $GITHUB_OUTPUT
- name: Upload Script Output
Expand All @@ -41,4 +41,18 @@ jobs:
if: steps.run_script.outputs.exit_code != '0'
run: |
echo "::error::Script execution failed with exit code ${{ steps.run_script.outputs.exit_code }}"
exit 1
exit 1
post-run:
runs-on: ubuntu-latest
needs: run-everything
steps:
- name: Download Script Output
uses: actions/download-artifact@v4
with:
name: script-output

- name: Display Latest Output
run: |
echo "===== Script Output ====="
cat script_output.log

0 comments on commit 2f5dfd0

Please sign in to comment.