Skip to content

Commit

Permalink
Update copy-md.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samricotta committed Sep 17, 2023
1 parent 78a7861 commit 1ef2bdc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/copy-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 1ef2bdc

Please sign in to comment.