| A GitHub Action example: | |
| ```yaml | |
| name: CI | |
| on: | |
| # Trigger the workflow on push or pull request events for the "production" branch | |
| push: | |
| branches: [ "production" ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| run-pull: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: PULL | |
| # Use GitHub secrets to protect sensitive information | |
| run: > | |
| curl --location '${{ secrets.INSTANCE_URL }}/version-control/pull' --header | |
| 'Content-Type: application/json' --header 'X-N8N-API-KEY: ${{ secrets.INSTANCE_API_KEY }}' | |
| ``` |