From 7859174d6b091cb68a8cb5e2642896a08d7aa929 Mon Sep 17 00:00:00 2001 From: Jaeyoung-Lim Date: Tue, 9 Feb 2021 21:30:08 +0100 Subject: [PATCH] Sync master branch with upstream using github actions This commit adds a github actions pipeline that syncs the master branch with upstream every 15 minutes --- .github/workflows/upstream_sync.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/upstream_sync.yml diff --git a/.github/workflows/upstream_sync.yml b/.github/workflows/upstream_sync.yml new file mode 100644 index 0000000000..2198146511 --- /dev/null +++ b/.github/workflows/upstream_sync.yml @@ -0,0 +1,22 @@ +# This pipeline keeps the master branch up to date with upstream master +name: Upstream Synchronization + +on: + schedule: + - cron: "*/15 * * * *" + workflow_dispatch: + +jobs: + repo-sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + persist-credentials: false + - name: repo-sync + uses: repo-sync/github-sync@v2 + with: + source_repo: "https://github.com/PX4/PX4-Autopilot.git" + source_branch: "master" + destination_branch: "master" + github_token: ${{ secrets.PAT }}