diff --git a/action.yaml b/action.yaml index 6c92e8f..47258fd 100644 --- a/action.yaml +++ b/action.yaml @@ -93,10 +93,19 @@ runs: - name: Generate SVG Diagrams id: generate-svg-diagrams + shell: bash if: success() && steps.changed-plantuml-files.outputs.modified_files != '' - uses: docker://ghcr.io/uclahs-cds/plantuml-github-action:v2.0.0 - with: - args: -DPLANTUML_LIMIT_SIZE=8192 -v -tsvg ${{ steps.changed-plantuml-files.outputs.modified_files }} + # Using the docker image directly causes GitHub to try + # to pull the image before docker/login-action runs. + # Because this is a private image, the step would fails when this happens. + run: | + echo Generate SVG diagrams + docker run \ + -v ${{ github.workspace }}:/data \ + ghcr.io/uclahs-cds/plantuml-github-action:v2.0.0 \ + -DPLANTUML_LIMIT_SIZE=8192 \ + -v \ + -tsvg ${{ steps.changed-plantuml-files.outputs.modified_files }} - name: Push Local Changes id: push-changes