mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 01:23:03 -04: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 }}
|
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
|
||||||
|
|
||||||
jobs:
|
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:
|
Build:
|
||||||
name: Build Equicord
|
name: Build Equicord
|
||||||
needs: DetermineRunner
|
runs-on: ubuntu-latest
|
||||||
runs-on: ${{ needs.DetermineRunner.outputs.runner}}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -89,12 +73,10 @@ jobs:
|
||||||
rm release/*.map
|
rm release/*.map
|
||||||
|
|
||||||
- name: Upload Equicord
|
- name: Upload Equicord
|
||||||
if: github.repository == 'Equicord/Equicord'
|
|
||||||
run: |
|
run: |
|
||||||
gh release upload latest --clobber dist/release/*
|
gh release upload latest --clobber dist/release/*
|
||||||
|
|
||||||
- name: Upload Plugins JSON to Ignore repo
|
- name: Upload Plugins JSON to Ignore repo
|
||||||
if: github.repository == 'Equicord/Equicord'
|
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "$USERNAME"
|
git config --global user.name "$USERNAME"
|
||||||
git config --global user.email "78185467+thororen1234@users.noreply.github.com"
|
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 * * *"
|
- cron: "0 */6 * * *"
|
||||||
|
|
||||||
jobs:
|
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:
|
codeberg:
|
||||||
name: Sync Codeberg and Github
|
name: Sync Codeberg and Github
|
||||||
if: github.repository == 'Equicord/Equicord'
|
runs-on: ubuntu-latest
|
||||||
needs: DetermineRunner
|
|
||||||
runs-on: ${{ needs.DetermineRunner.outputs.runner }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
1
.github/workflows/reportBrokenPlugins.yml
vendored
1
.github/workflows/reportBrokenPlugins.yml
vendored
|
@ -8,7 +8,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
TestPlugins:
|
TestPlugins:
|
||||||
name: Test Patches
|
name: Test Patches
|
||||||
if: github.repository == 'Equicord/Equicord'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
36
.github/workflows/syncDev.yml
vendored
36
.github/workflows/syncDev.yml
vendored
|
@ -1,25 +1,25 @@
|
||||||
name: Sync Vencord Dev
|
name: Sync Vencord Dev
|
||||||
|
|
||||||
env:
|
env:
|
||||||
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
||||||
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
||||||
UPSTREAM_BRANCH: "dev"
|
UPSTREAM_BRANCH: "dev"
|
||||||
DOWNSTREAM_BRANCH: "dev"
|
DOWNSTREAM_BRANCH: "dev"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 * * * *"
|
- cron: "0 * * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Sync Vencord Dev
|
- name: Sync Vencord Dev
|
||||||
id: sync
|
id: sync
|
||||||
uses: verticalsync/sync-upstream-repo@master
|
uses: verticalsync/sync-upstream-repo@master
|
||||||
with:
|
with:
|
||||||
upstream_repo: ${{ env.UPSTREAM_URL }}
|
upstream_repo: ${{ env.UPSTREAM_URL }}
|
||||||
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
||||||
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
|
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
|
||||||
token: ${{ env.WORKFLOW_TOKEN }}
|
token: ${{ env.WORKFLOW_TOKEN }}
|
||||||
|
|
36
.github/workflows/syncMain.yml
vendored
36
.github/workflows/syncMain.yml
vendored
|
@ -1,25 +1,25 @@
|
||||||
name: Sync Vencord Main
|
name: Sync Vencord Main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
WORKFLOW_TOKEN: ${{ secrets.ETOKEN }}
|
||||||
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
UPSTREAM_URL: "https://github.com/Vendicated/Vencord.git"
|
||||||
UPSTREAM_BRANCH: "main"
|
UPSTREAM_BRANCH: "main"
|
||||||
DOWNSTREAM_BRANCH: "main"
|
DOWNSTREAM_BRANCH: "main"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 * * * *"
|
- cron: "0 * * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Sync Vencord Main
|
- name: Sync Vencord Main
|
||||||
id: sync
|
id: sync
|
||||||
uses: verticalsync/sync-upstream-repo@master
|
uses: verticalsync/sync-upstream-repo@master
|
||||||
with:
|
with:
|
||||||
upstream_repo: ${{ env.UPSTREAM_URL }}
|
upstream_repo: ${{ env.UPSTREAM_URL }}
|
||||||
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
||||||
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
|
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
|
||||||
token: ${{ env.WORKFLOW_TOKEN }}
|
token: ${{ env.WORKFLOW_TOKEN }}
|
||||||
|
|
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
@ -10,29 +10,10 @@ on:
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
jobs:
|
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:
|
Test:
|
||||||
name: Test For Pushes
|
name: Test For Pushes
|
||||||
needs: DetermineRunner
|
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
runs-on: ${{ needs.DetermineRunner.outputs.runner}}
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue