Skip to content

Commit

Permalink
git diff
Browse files Browse the repository at this point in the history
  • Loading branch information
samricotta committed Sep 17, 2023
1 parent 8455f55 commit 6ac57be
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/copy-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ jobs:
sync-docs-and-create-pr:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: sync-docs-branch

- name: Checkout Sync-Branch
run: |
Expand All @@ -26,25 +31,27 @@ jobs:

- name: Install Dependencies
run: |
yarn install --frozen-lockfile
yarn install --frozen-lockfile
- name: Run Sync Script
run: |
chmod +x sync_script.sh
chmod +x sync_script.sh
./sync_script.sh
- uses: stefanzweifel/git-auto-commit-action@v4
if: always()
- name: Add And Commit
uses: EndBug/add-and-commit@v9
with:
commit_message: sync documentation changes
message: 'Update Docs'

- name: Push Changes
run: git push origin sync-docs-branch
- name: Push To Sync-Docs-Branch
uses: ad-m/github-push-action@master
with:
branch: sync-docs-branch

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: main
branch: sync-docs-branch
title: "Sync Documentation Changes"
body: "Automatically generated by GitHub Actions to sync documentation changes."
body: "Automatically generated by GitHub Actions to sync documentation changes."

0 comments on commit 6ac57be

Please sign in to comment.