diff --git a/.github/workflows/pull_changes.yml b/.github/workflows/pull_changes.yml new file mode 100644 index 0000000000..5deb6ae49e --- /dev/null +++ b/.github/workflows/pull_changes.yml @@ -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