mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-04-04 13:28:43 +07:00
20 lines
595 B
Markdown
20 lines
595 B
Markdown
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 }}'
|
|
``` |