mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Workflow updates
This commit is contained in:
parent
3f27ae590b
commit
32d70de0e6
6 changed files with 39 additions and 96 deletions
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
@ -15,25 +15,9 @@ env:
|
|||
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
|
||||
|
||||
jobs:
|
||||
DetermineRunner:
|
||||
name: Determine Runner
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
runner: ${{ steps.set-runner.outputs.runner }}
|
||||
steps:
|
||||
- name: Determine which runner to use
|
||||
id: set-runner
|
||||
uses: benjaminmichaelis/get-soonest-available-runner@v1.1.0
|
||||
with:
|
||||
primary-runner: "self-hosted"
|
||||
fallback-runner: "ubuntu-latest"
|
||||
min-available-runners: 1
|
||||
github-token: ${{ env.GITHUB_TOKEN }}
|
||||
|
||||
Build:
|
||||
name: Build Equicord
|
||||
needs: DetermineRunner
|
||||
runs-on: ${{ needs.DetermineRunner.outputs.runner}}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -89,12 +73,10 @@ jobs:
|
|||
rm release/*.map
|
||||
|
||||
- name: Upload Equicord
|
||||
if: github.repository == 'Equicord/Equicord'
|
||||
run: |
|
||||
gh release upload latest --clobber dist/release/*
|
||||
|
||||
- name: Upload Plugins JSON to Ignore repo
|
||||
if: github.repository == 'Equicord/Equicord'
|
||||
run: |
|
||||
git config --global user.name "$USERNAME"
|
||||
git config --global user.email "78185467+thororen1234@users.noreply.github.com"
|
||||
|
|
21
.github/workflows/codeberg-mirror.yml
vendored
21
.github/workflows/codeberg-mirror.yml
vendored
|
@ -9,28 +9,9 @@ on:
|
|||
- cron: "0 */6 * * *"
|
||||
|
||||
jobs:
|
||||
DetermineRunner:
|
||||
name: Determine Runner
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
runner: ${{ steps.set-runner.outputs.runner }}
|
||||
steps:
|
||||
- name: Determine which runner to use
|
||||
id: set-runner
|
||||
uses: benjaminmichaelis/get-soonest-available-runner@v1.1.0
|
||||
with:
|
||||
primary-runner: "self-hosted"
|
||||
fallback-runner: "ubuntu-latest"
|
||||
min-available-runners: 1
|
||||
github-token: ${{ env.GITHUB_TOKEN }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
|
||||
|
||||
codeberg:
|
||||
name: Sync Codeberg and Github
|
||||
if: github.repository == 'Equicord/Equicord'
|
||||
needs: DetermineRunner
|
||||
runs-on: ${{ needs.DetermineRunner.outputs.runner }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
1
.github/workflows/reportBrokenPlugins.yml
vendored
1
.github/workflows/reportBrokenPlugins.yml
vendored
|
@ -8,7 +8,6 @@ on:
|
|||
jobs:
|
||||
TestPlugins:
|
||||
name: Test Patches
|
||||
if: github.repository == 'Equicord/Equicord'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
36
.github/workflows/syncDev.yml
vendored
36
.github/workflows/syncDev.yml
vendored
|
@ -1,25 +1,25 @@
|
|||
name: Sync Vencord Dev
|
||||
|
||||
env:
|
||||
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
||||
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
||||
UPSTREAM_BRANCH: "dev"
|
||||
DOWNSTREAM_BRANCH: "dev"
|
||||
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
||||
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
||||
UPSTREAM_BRANCH: "dev"
|
||||
DOWNSTREAM_BRANCH: "dev"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Sync Vencord Dev
|
||||
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 }}
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Sync Vencord Dev
|
||||
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 }}
|
||||
|
|
36
.github/workflows/syncMain.yml
vendored
36
.github/workflows/syncMain.yml
vendored
|
@ -1,25 +1,25 @@
|
|||
name: Sync Vencord Main
|
||||
|
||||
env:
|
||||
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
||||
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
||||
UPSTREAM_BRANCH: "main"
|
||||
DOWNSTREAM_BRANCH: "main"
|
||||
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
||||
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
||||
UPSTREAM_BRANCH: "main"
|
||||
DOWNSTREAM_BRANCH: "main"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Sync Vencord Main
|
||||
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 }}
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Sync Vencord Main
|
||||
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 }}
|
||||
|
|
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
@ -10,29 +10,10 @@ on:
|
|||
- dev
|
||||
|
||||
jobs:
|
||||
DetermineRunner:
|
||||
name: Determine Runner
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
runner: ${{ steps.set-runner.outputs.runner }}
|
||||
steps:
|
||||
- name: Determine which runner to use
|
||||
id: set-runner
|
||||
uses: benjaminmichaelis/get-soonest-available-runner@v1.1.0
|
||||
with:
|
||||
primary-runner: "self-hosted"
|
||||
fallback-runner: "ubuntu-latest"
|
||||
min-available-runners: 1
|
||||
github-token: ${{ env.GITHUB_TOKEN }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
|
||||
|
||||
Test:
|
||||
name: Test For Pushes
|
||||
needs: DetermineRunner
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
runs-on: ${{ needs.DetermineRunner.outputs.runner}}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
Loading…
Reference in a new issue