Skip to content

Commit

Permalink
Create pull_changes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tasneemkoushar authored Feb 11, 2024
1 parent 031adf9 commit 94d2d18
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pull_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pull Changes on Push to Develop Branch

on:
push:
branches:
- develop

jobs:
pull_changes:
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: develop

- name: Pull changes from develop branch
run: git pull origin develop

- name: Push changes to automated-docs branch
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git push origin HEAD:automated-docs

0 comments on commit 94d2d18

Please sign in to comment.