From 15291113ec112cbfbf6394b3c81d0c90f69808d5 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Wed, 20 Dec 2023 05:19:33 +0000 Subject: [PATCH] Update wiki/action.yaml --- wiki/action.yaml | 70 ++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/wiki/action.yaml b/wiki/action.yaml index ca5cb93..ca54094 100644 --- a/wiki/action.yaml +++ b/wiki/action.yaml @@ -2,41 +2,41 @@ name: Publish Wiki desciption: Publish Wiki inputs: - url: - type: string - required: false - description: Repository URL that will be cloned - default: ${{github.server_url}}/${{github.repository}}.wiki.git - token: - type: string - required: false - description: Authentication token - default: ${{github.token}} - pattern: - type: string - required: false - description: Directory to upload to wiki - default: docs + url: + type: string + required: false + description: Repository URL that will be cloned + default: ${{github.server_url}}/${{github.repository}}.wiki.git + token: + type: string + required: false + description: Authentication token + default: ${{github.token}} + pattern: + type: string + required: false + description: Directory to upload to wiki + default: docs runs: - using: composite - steps: - - name: Creat authorized Git URL - run: echo "URL=$(echo ${{inputs.url}} | sed s%://%://${{inputs.token}}@% )" >> $GITHUB_ENV - shell: sh + using: composite + steps: + - name: Creat authorized Git URL + run: echo "URL=$(echo ${{inputs.url}} | sed s%://%://${{inputs.token}}@% )" >> $GITHUB_ENV + shell: sh - - name: Clone repository - uses: docker://alpine/git - with: - entrypoint: git - args: clone "${{env.URL}}" wiki - - - name: Update files - run: mv -f ${{inputs.pattern}} wiki/ - shell: sh - - = name: Push - uses: docker://alpine/git - with: - entrypoint: git - args: sh -c "cd wiki && git add . && git commit -m Automated wiki update && git push" + - name: Clone repository + uses: docker://alpine/git + with: + entrypoint: git + args: clone "${{env.URL}}" wiki + + - name: Update files + run: mv -f ${{inputs.pattern}} wiki/ + shell: sh + + - name: Push + uses: docker://alpine/git + with: + entrypoint: git + args: sh -c "cd wiki && git add . && git commit -m Automated wiki update && git push"