فهرست منبع

Pack everything as a single artifact

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 5 سال پیش
والد
کامیت
ef90cf1d62
2فایلهای تغییر یافته به همراه8 افزوده شده و 12 حذف شده
  1. 2 10
      .github/workflows/main.yml
  2. 6 2
      action.yml

+ 2 - 10
.github/workflows/main.yml

@@ -11,13 +11,5 @@ jobs:
         uses: src-d/hercules@master
       - uses: actions/upload-artifact@master
         with:
-          name: burndown-project
-          path: _hercules/project.png
-      - uses: actions/upload-artifact@master
-        with:
-          name: burndown-people
-          path: _hercules/people.png
-      - uses: actions/upload-artifact@master
-        with:
-          name: overwrites
-          path: _hercules/matrix.png
+          name: hercules_charts
+          path: hercules_charts.tar

+ 6 - 2
action.yml

@@ -5,14 +5,18 @@ inputs:
   args:
     description: "hercules command line arguments"
     required: false
-    default: "--burndown --burndown-people"
+    default: "--burndown --burndown-people --devs --couples"
 runs:
   using: "docker"
   image: "docker://srcd/hercules:latest"
   args:
     - "/bin/bash"
     - "-c"
-    - "hercules ${{ inputs.args }} --pb $GITHUB_WORKSPACE | labours -m all -f pb --disable-projector -o $GITHUB_WORKSPACE/_hercules"
+    - "hercules ${{ inputs.args }} --pb . | labours -m all -f pb --disable-projector -o hercules_charts
+       && cd hercules_charts
+       && tar -cf ../hercules_charts.tar . ../hercules_charts_*
+       && cd ..
+       && rm -r hercules_charts"
 branding:
   color: purple
   icon: bar-chart-2