From 5922cd98b28b9d4bf728b2f0e52f2889e8a80a1d Mon Sep 17 00:00:00 2001 From: Evan Culver Date: Thu, 15 Jul 2021 11:36:15 -0700 Subject: [PATCH] ci: mirror oss:main to ent:oss-mirror --- .github/workflows/ent-mirror.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ent-mirror.yml diff --git a/.github/workflows/ent-mirror.yml b/.github/workflows/ent-mirror.yml new file mode 100644 index 0000000000..f202f396d0 --- /dev/null +++ b/.github/workflows/ent-mirror.yml @@ -0,0 +1,20 @@ +# mirrors main to consul-enterprise:oss-mirror +name: "ent-mirror" + +# Runs on pushes to main +on: + push: + branches: + - main + +jobs: + ent-mirror: + runs-on: ubuntu-latest + steps: + - name: git-sync + uses: wei/git-sync@v3 + with: + source_repo: "https://github.com/hashicorp/consul" + source_branch: "main" + destination_repo: "https://hc-github-team-consul-core:${{ secrets.PUSH_ENT_TOKEN }}@github.com/hashicorp/consul-enterprise.git" + destination_branch: "oss-mirror"