mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
Fix Ci (#2565)
* fix: Validate not running cron * fix: always upload artifact * fix: generate fail on first comment
This commit is contained in:
1
.github/workflows/benchmark.yml
vendored
1
.github/workflows/benchmark.yml
vendored
@@ -42,7 +42,6 @@ jobs:
|
||||
output-file-path: output.txt
|
||||
external-data-json-path: benchmarksResult/data.json
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: ${{ github.ref != 'refs/heads/main' }}
|
||||
with:
|
||||
name: benchmarkResults
|
||||
path: benchmarksResult/data.json
|
||||
|
||||
19
.github/workflows/validateCache.yml
vendored
19
.github/workflows/validateCache.yml
vendored
@@ -1,12 +1,27 @@
|
||||
name: Validate Cache
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
# This is just a dummy action for real one in benchies branch to run
|
||||
jobs:
|
||||
validate-cache:
|
||||
name: Validate Cache
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: "benchies"
|
||||
- uses: denoland/setup-deno@main
|
||||
with:
|
||||
deno-version: "v1.x"
|
||||
- name: Check And Update Objects
|
||||
run: deno run -A cache/checkAndUpdateObjects.ts
|
||||
env:
|
||||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
||||
- name: Commit and push
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
add: cache/cachedObject
|
||||
message: "[Scheduled] Auto patch objects"
|
||||
|
||||
Reference in New Issue
Block a user