Skip to content

Commit

Permalink
Use specific action_path instead of relying on PATH resolution of the…
Browse files Browse the repository at this point in the history
… action setup (#33)

* revert: cbc710e

* Use the specific action directory when calling the script

* Use specific action_path when using formatter script
  • Loading branch information
tjgurwara99 committed Aug 3, 2023
1 parent b68cc98 commit be5a4f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions directory_md/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion formatter/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit be5a4f8

Please sign in to comment.