Sample (taken from here):
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
...
...
- name: Push DAG to Composer Project
uses: propertyguru/github-action-push-to-another-repository@main
with:
source-directory: 'tmp'
destination-github-username: 'propertyguru'
destination-repository-name: 'composer-airflow-2'
user-email: rahulbaid@propertyguru.com.sg
create-target-branch-if-needed: true
target-branch: ${{ steps.branch-name.outputs.branch }}
target-directory: dags/reverse-etl
create-pr: true
base-branch: main
Notes:
user-email
can also beautomated-pg@propertyguru.com.sg
create-pr
is optional. Defaults tofalse
. not in original forkbase-branch
is optional. Defaults tomaster
. not in original fork- More documentation can be found at https://github.com/cpina/github-action-push-to-another-repository
Contributed and maintained by Rahul Baid