Skip to content

Commit

Permalink
Use working-directory instead of switching dirs all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas committed Oct 30, 2024
1 parent 08b7ca4 commit 053d678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/slackify-markdown/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ runs:
npm init -y
- name: Install slackify-markdown package
shell: bash
working-directory: slackify
run: |
cd slackify
npm install [email protected]
- 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;
Expand All @@ -49,5 +50,4 @@ runs:
- name: Clean up slackify directory
shell: bash
run: |
cd ..
rm -rf slackify

0 comments on commit 053d678

Please sign in to comment.