From b24c3ae92951c0497263eead7cc95625b3aeaff9 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Tue, 2 May 2023 01:02:18 -0500 Subject: [PATCH] idea --- action.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index ef1c431..4b4d0b8 100644 --- a/action.yml +++ b/action.yml @@ -40,12 +40,20 @@ inputs: runs: using: composite steps: - - id: index - run: '"${GITHUB_ACTION_PATH%/}/src/index.sh"' + - uses: actions/checkout@v3 + with: + repository: ${{ inputs.repository }}.wiki + token: ${{ inputs.token }} + path: /tmp/wiki + - uses: GuillaumeFalourd/setup-rsync@v1.1 + - run: rsync -a "${INPUT_PATH%/}/" /tmp/wiki/ shell: bash env: - INPUT_REPOSITORY: ${{ inputs.repository }} - INPUT_TOKEN: ${{ inputs.token }} INPUT_PATH: ${{ inputs.path }} - INPUT_COMMIT_MESSAGE: ${{ inputs.commit-message }} - INPUT_DRY_RUN: ${{ inputs.dry-run }} + - if: inputs.dry-run == false + uses: stefanzweifel/git-auto-commit-action@v4 + with: + repository: /tmp/wiki + commit_message: ${{ inputs.commit-message }} + - run: rm -rf /tmp/wiki + shell: bash