generated from cheqd/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(node): Switch build to Node v18 (#26)
* Update mlc_config.json * Add cache cleanup * Change node version to 18 * Bump wrangler * Bump packages * Update build.yml
- Loading branch information
Showing
10 changed files
with
371 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{ | ||
"aliveStatusCodes": [0, 200, 206, 403, 999] | ||
"aliveStatusCodes": [0, 200, 206, 429, 403, 501, 999], | ||
"replacementPatterns": [ | ||
{ | ||
"pattern": "\" %}", | ||
"replacement": "" | ||
}, | ||
{ | ||
"pattern": "" %}", | ||
"replacement": "" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Cleanup - Actions" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
days: | ||
description: 'Retain days' | ||
required: true | ||
type: string | ||
default: 30 | ||
minimum_runs: | ||
description: 'Minimum runs to keep for each workflow' | ||
required: true | ||
type: string | ||
default: 0 | ||
delete_workflow_pattern: | ||
description: 'Name/filename of workflow. Default is all.' | ||
required: false | ||
type: string | ||
delete_workflow_by_state_pattern: | ||
description: 'Remove workflow by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually' | ||
required: true | ||
default: All | ||
type: choice | ||
options: | ||
- All | ||
- active | ||
- deleted | ||
- disabled_inactivity | ||
- disabled_manually | ||
|
||
jobs: | ||
|
||
delete-runs: | ||
name: "Delete old workflow runs" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: Mattraks/delete-workflow-runs@v2 | ||
with: | ||
token: ${{ github.token }} | ||
repository: ${{ github.repository }} | ||
retain_days: ${{ github.event.inputs.days }} | ||
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }} | ||
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }} | ||
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Cache Cleanup - Automatic" | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
|
||
jobs: | ||
|
||
cache-purge: | ||
name: "Purge Actions cache" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: "Delete Branch Cache Action" | ||
uses: snnaplab/delete-branch-cache-action@v1.0.0 | ||
with: | ||
# Specify explicitly because the ref at the time of merging will be a branch name such as 'main', 'develop' | ||
ref: refs/pull/${{ github.event.number }}/merge | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Cache Cleanup - Manual" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dry-run: | ||
description: "Dry run only?" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
|
||
delete-caches: | ||
name: "Delete Actions caches" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Wipe Github Actions cache" | ||
uses: easimon/wipe-cache@v1 | ||
with: | ||
dry-run: ${{ github.event.inputs.dry-run }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.