From e1d38cc52497b31fb208f9bba0e08405c7ad1125 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:04:47 -0400 Subject: [PATCH] Workflow Stuff --- .github/workflows/build.yml | 5 +---- .github/workflows/syncDev.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/syncDev.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e849cf7b..52854331 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ on: - pnpm-lock.yaml env: FORCE_COLOR: true + GITHUB_TOKEN: ${{ secrets.ETOKEN }} jobs: DetermineRunner: @@ -28,8 +29,6 @@ jobs: fallback-runner: "ubuntu-latest" min-available-runners: 1 github-token: ${{ env.GITHUB_TOKEN }} - env: - GITHUB_TOKEN: ${{ secrets.ETOKEN }} Build: name: Build Equicord @@ -67,5 +66,3 @@ jobs: if: github.repository == 'Equicord/Equicord' run: | gh release upload latest --clobber dist/* - env: - GITHUB_TOKEN: ${{ secrets.ETOKEN }} diff --git a/.github/workflows/syncDev.yml b/.github/workflows/syncDev.yml new file mode 100644 index 00000000..b59d7208 --- /dev/null +++ b/.github/workflows/syncDev.yml @@ -0,0 +1,25 @@ +name: Sync Vencord dev branch + +env: + WORKFLOW_TOKEN: ${{ secrets.ETOKEN }} + UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git" + UPSTREAM_BRANCH: "dev" + DOWNSTREAM_BRANCH: "main" + +on: + schedule: + - cron: "0 * * * *" + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: GitHub Sync to Upstream Repository + id: sync + uses: verticalsync/sync-upstream-repo@master + with: + upstream_repo: ${{ env.UPSTREAM_URL }} + upstream_branch: ${{ env.UPSTREAM_BRANCH }} + downstream_branch: ${{ env.DOWNSTREAM_BRANCH }} + token: ${{ env.WORKFLOW_TOKEN }}