Skip to content

Commit

Permalink
Upload log files without tar
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Aug 8, 2023
1 parent ed9de08 commit 4749a3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,24 +204,24 @@ jobs:
if: always()
shell: bash
run: |
mkdir -p logs
export PATH=$HOME/bazel:$PATH
base=$( bazel info output_base )
cd "$base"
find -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r tar --force-local -cf "$GITHUB_WORKSPACE/logs.tar"
find "$base" -mindepth 1 -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r cp -T logs
- name: Collect logs
if: always()
shell: bash
run: |
mkdir -p logs
export PATH=$HOME/bazel:$PATH
cd rules_haskell_tests
base=$( bazel info output_base )
cd "$base"
find -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r tar --force-local -Af "$GITHUB_WORKSPACE/logs.tar"
find "$base" -mindepth 1 -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r cp -T logs
- name: Upload logs
if: always()
uses: actions/upload-artifact@v3
with:
name: Logs ${{ matrix.os }} ${{ matrix.module }} ${{ matrix.bzlmod }}
path: logs.tar
path: logs

0 comments on commit 4749a3c

Please sign in to comment.