From 053d678d001335582d2bafcc21f8d55becf4ef1f Mon Sep 17 00:00:00 2001 From: fmvilas Date: Wed, 30 Oct 2024 18:38:28 +0100 Subject: [PATCH] Use working-directory instead of switching dirs all the time --- .github/actions/slackify-markdown/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/slackify-markdown/action.yml b/.github/actions/slackify-markdown/action.yml index 944642c6..9449cc7a 100644 --- a/.github/actions/slackify-markdown/action.yml +++ b/.github/actions/slackify-markdown/action.yml @@ -27,17 +27,18 @@ runs: npm init -y - name: Install slackify-markdown package shell: bash + working-directory: slackify run: | - cd slackify npm install slackify-markdown@4.3.1 - name: Slackify uses: actions/github-script@v6 id: slackify + working-directory: slackify env: MARKDOWN: ${{ inputs.markdown }} with: script: | - const slackifyMarkdown = require('./slackify/node_modules/slackify-markdown'); + const slackifyMarkdown = require('slackify-markdown'); try { const md = process.env.MARKDOWN; @@ -49,5 +50,4 @@ runs: - name: Clean up slackify directory shell: bash run: | - cd .. rm -rf slackify