8000 Use specific action_path instead of relying on PATH resolution of the… · TheAlgorithms/scripts@be5a4f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit be5a4f8

Browse files
authored
Use specific action_path instead of relying on PATH resolution of the action setup (#33)
* revert: cbc710e * Use the specific action directory when calling the script * Use specific action_path when using formatter script
1 parent b68cc98 commit be5a4f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

directory_md/action.yml

+2-2
< 8000 td data-grid-cell-id="diff-a4fd919a3036280c49cb471278430a861604bea6c1039a932c7081b9689b6b25-30-30-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">30
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
30
- name: Set up Python
3131
uses: actions/setup-python@v4
3232
with:
33-
python-version: '3.x'
33+
python-version: "3.x"
3434
- name: Setup Git configurations
3535
shell: bash
3636
run: |
@@ -42,7 +42,7 @@ runs:
4242
# If branch exists, change to that branch to prevent multiple committing/PR creation.
4343
git checkout ${{ inputs.branch-name }} || true
4444
45-
python ./build_directory_md.py ${{ inputs.language }} ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignored-directories }} ${{ inputs.ignore-folders-children }} > DIRECTORY.md
45+
python ${{ github.action_path }}/build_directory_md.py ${{ inputs.language }} ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignored-directories }} ${{ inputs.ignore-folders-children }} > DIRECTORY.md
4646
- name: Creating a branch
4747
shell: bash
4848
run: |

formatter/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
- name: Running the formatter
2626
shell: bash
2727
run: |
28-
filename_formatter.sh ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignore-files }}
28+
${{ github.action_path }}/filename_formatter.sh ${{ inputs.working-directory }} ${{ inputs.filetypes }} ${{ inputs.ignore-files }}
2929
- name: Committing changes
3030
shell: bash
3131
run: |

0 commit comments

Comments
 (0)
0