From 1ef2bdca352ff4f15feae754bcb48534be5afa0b Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 17 Sep 2023 21:03:35 +0300 Subject: [PATCH] Update copy-md.yml --- .github/workflows/copy-md.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/copy-md.yml b/.github/workflows/copy-md.yml index 174e97054..3564ab1ea 100644 --- a/.github/workflows/copy-md.yml +++ b/.github/workflows/copy-md.yml @@ -10,6 +10,9 @@ jobs: sync-docs-and-create-pr: runs-on: ubuntu-latest + permissions: + contents: write + steps: - name: Checkout Repository uses: actions/checkout@v2 @@ -36,6 +39,17 @@ jobs: if: always() with: commit_message: sync documentation changes + branch: sync-docs-branch + create_branch: false + + - name: "Run if changes have been detected" + if: steps.auto-commit-action.outputs.changes_detected == 'true' + run: echo "Changes!" + + - name: "Run if no changes have been detected" + if: steps.auto-commit-action.outputs.changes_detected == 'false' + run: echo "No Changes!" + - name: Push Changes run: git push origin sync-docs-branch