diff --git a/directory_md/action.yml b/directory_md/action.yml index aa3faa2..d773682 100644 --- a/directory_md/action.yml +++ b/directory_md/action.yml @@ -30,7 +30,7 @@ runs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: "3.x" - name: Setup Git configurations shell: bash run: | @@ -42,7 +42,7 @@ runs: # If branch exists, change to that branch to prevent multiple committing/PR creation. git checkout ${{ inputs.branch-name }} || true - python ./build_directory_md.py ${{ inputs.language }} ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignored-directories }} ${{ inputs.ignore-folders-children }} > DIRECTORY.md + python ${{ github.action_path }}/build_directory_md.py ${{ inputs.language }} ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignored-directories }} ${{ inputs.ignore-folders-children }} > DIRECTORY.md - name: Creating a branch shell: bash run: | diff --git a/formatter/action.yml b/formatter/action.yml index cc232b2..c2065cc 100644 --- a/formatter/action.yml +++ b/formatter/action.yml @@ -25,7 +25,7 @@ runs: - name: Running the formatter shell: bash run: | - filename_formatter.sh ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignore-files }} + ${{ github.action_path }}/filename_formatter.sh ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignore-files }} - name: Committing changes shell: bash run: |