Explorar o código

Change the output path in the Action

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev %!s(int64=5) %!d(string=hai) anos
pai
achega
3a152b7b87
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 3 3
      .github/workflows/main.yml
  2. 1 1
      action.yml

+ 3 - 3
.github/workflows/main.yml

@@ -12,12 +12,12 @@ jobs:
       - uses: actions/upload-artifact@master
         with:
           name: burndown-project
-          path: /github/home/hercules/project.png
+          path: _hercules/project.png
       - uses: actions/upload-artifact@master
         with:
           name: burndown-people
-          path: /github/home/hercules/people.png
+          path: _hercules/people.png
       - uses: actions/upload-artifact@master
         with:
           name: overwrites
-          path: /github/home/hercules/matrix.png
+          path: _hercules/matrix.png

+ 1 - 1
action.yml

@@ -12,7 +12,7 @@ runs:
   args:
     - "/bin/bash"
     - "-c"
-    - "mkdir /github/home/hercules && cd /github/home/hercules && hercules ${{ inputs.args }} --pb /github/workspace | labours -m all -f pb --disable-projector -o result"
+    - "hercules ${{ inputs.args }} --pb $GITHUB_WORKSPACE | labours -m all -f pb --disable-projector -o $GITHUB_WORKSPACE/_hercules"
 branding:
   color: purple
   icon: bar-chart-2