airflow-teradata-teradata_main-sync #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: airflow-teradata-teradata_main-sync | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Schedule to run every day at midnight | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
ref: teradata_main | |
persist-credentials: false | |
- name: Set up Git | |
run: | | |
git config --global user.email "actions@github.com" | |
git config --global user.name "GitHub Actions" | |
- name: Fetch upstream changes | |
run: | | |
git remote add upstream https://github.com/apache/airflow.git | |
git fetch upstream | |
- name: Merge changes from upstream | |
run: git merge upstream/main --no-edit | |
- name: Push changes to forked branch | |
run: | | |
git remote set-url origin https://DA230216:${{ secrets.GIT_SYNC_PUSH_KEY }}@github.com/Teradata/airflow.git | |
git push origin teradata_main |