Workflow updates

This commit is contained in:
thororen1234 2024-08-15 01:26:53 -04:00
parent 3f27ae590b
commit 32d70de0e6
6 changed files with 39 additions and 96 deletions

View file

@ -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"

View file

@ -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:

View file

@ -8,7 +8,6 @@ on:
jobs:
TestPlugins:
name: Test Patches
if: github.repository == 'Equicord/Equicord'
runs-on: ubuntu-latest
steps:

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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