diff --git a/.github/workflows/slack-notify-build.yml b/.github/workflows/slack-notify-build.yml index 54dbdd8..c096d63 100644 --- a/.github/workflows/slack-notify-build.yml +++ b/.github/workflows/slack-notify-build.yml @@ -59,11 +59,18 @@ jobs: - uses: r-lib/actions/setup-tinytex@v2 - run: tlmgr --version - - name: Install Ghostscript - run: | - if [ "${{ runner.os }}" == 'Linux' ]; then sudo apt-get install -y ghostscript; fi - if [ "${{ runner.os }}" == 'macOS' ]; then brew install ghostscript; fi - if [ "${{ runner.os }}" == 'Windows' ]; then choco install ghostscript --no-progress; fi + - name: Install Ghostscript on Linux + if: runner.os == 'Linux' + run: sudo apt-get install -y ghostscript + + - name: Install Ghostscript on macOS + if: runner.os == 'macOS' + run: brew install ghostscript + + - name: Install Ghostscript on Windows + if: runner.os == 'Windows' + run: choco install ghostscript --no-progress + - uses: r-lib/actions/setup-r@v2 with: