From cdaa059f35aa0d10e2c7310c34b8a31e0140a004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Bene=C5=A1?= Date: Sat, 26 Oct 2024 11:31:41 +0200 Subject: [PATCH] Try again, inlining! --- .github/workflows/hercules.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/hercules.yml b/.github/workflows/hercules.yml index a5cba6152..37ed8e572 100644 --- a/.github/workflows/hercules.yml +++ b/.github/workflows/hercules.yml @@ -1,17 +1,28 @@ +name: Hercules Analysis + on: [push] jobs: hercules-charts: runs-on: ubuntu-latest - name: Charts generated by src-d/hercules + name: Generate Burndown Charts steps: - uses: actions/checkout@master with: fetch-depth: 0 - - name: Hercules - uses: src-d/hercules@master - with: - args: "--burndown" + + - name: Run Hercules Analysis + run: | + # Install Hercules and Labours + docker run --rm -v $(pwd):/repo --workdir=/repo \ + srcd/hercules:latest \ + /bin/bash -c \ + 'hercules --burndown . | labours -m burndown-project -f pb -o hercules_charts \ + && cd hercules_charts \ + && tar -cf ../hercules_charts.tar * \ + && cd .. \ + && rm -r hercules_charts' + - uses: actions/upload-artifact@master with: name: hercules_charts