From 8588ace8336a866baf5b384e4fbe8871495a0cfd Mon Sep 17 00:00:00 2001 From: Taj Date: Tue, 1 Aug 2023 22:51:19 +0100 Subject: [PATCH 1/3] revert: cbc710e1ec650a4fc7ac622ebec53de221442c79 --- directory_md/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/directory_md/action.yml b/directory_md/action.yml index aa3faa2..e01843d 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 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: | From abd0f871cc0d056caef62233a4cfe9880429fdf8 Mon Sep 17 00:00:00 2001 From: Taj Date: Tue, 1 Aug 2023 22:57:47 +0100 Subject: [PATCH 2/3] Use the specific action directory when calling the script --- directory_md/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/directory_md/action.yml b/directory_md/action.yml index e01843d..d773682 100644 --- a/directory_md/action.yml +++ b/directory_md/action.yml @@ -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: | From cc09bff94e181e1042edb56455aff6259dd99139 Mon Sep 17 00:00:00 2001 From: Taj Date: Tue, 1 Aug 2023 22:59:26 +0100 Subject: [PATCH 3/3] Use specific action_path when using formatter script --- formatter/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: |