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