-
-
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.
Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
b9daf02
commit bd261ee
Showing
5 changed files
with
64 additions
and
82 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,59 +1,3 @@ | ||
{ | ||
"defaultIgnores": true, | ||
"extends": ["@commitlint/config-conventional"], | ||
"formatter": "@commitlint/format", | ||
"ignores": [], | ||
"rules": { | ||
"scope-case": [2, "always", ["kebab-case", "lower-case"]], | ||
"scope-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"build", | ||
"cli", | ||
"deps", | ||
"deps-bundle", | ||
"deps-dev", | ||
"deps-opt", | ||
"deps-peer", | ||
"esm", | ||
"exports", | ||
"github", | ||
"install", | ||
"loader", | ||
"node", | ||
"nvm", | ||
"patches", | ||
"pkg", | ||
"release", | ||
"scripts", | ||
"spelling", | ||
"tests", | ||
"ts", | ||
"types", | ||
"vscode", | ||
"workflows", | ||
"yarn" | ||
] | ||
], | ||
"subject-case": [1, "always", "lower-case"], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"build", | ||
"chore", | ||
"ci", | ||
"docs", | ||
"feat", | ||
"fix", | ||
"perf", | ||
"refactor", | ||
"revert", | ||
"style", | ||
"test", | ||
"wip" | ||
] | ||
] | ||
} | ||
"extends": "@flex-development" | ||
} |
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 |
---|---|---|
|
@@ -26,12 +26,11 @@ on: | |
inputs: | ||
all: | ||
default: false | ||
description: delete caches without filtering by github.ref | ||
description: delete caches without filtering by branch | ||
type: boolean | ||
permissions: | ||
actions: write | ||
env: | ||
BRANCH: ${{ github.head_ref || github.ref_name }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
concurrency: | ||
cancel-in-progress: true | ||
|
@@ -44,23 +43,23 @@ jobs: | |
name: Print environment variables and event payload | ||
uses: hmarr/[email protected] | ||
- id: checkout | ||
name: Checkout ${{ github.ref_name }} | ||
name: Checkout main | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
ref: ${{ github.ref }} | ||
ref: main | ||
- id: gh-actions-cache | ||
name: Install actions/gh-actions-cache | ||
run: gh extension install actions/gh-actions-cache | ||
- id: cleanup | ||
name: Delete caches${{ !inputs.all && format(' created by {0}', env.BRANCH) || '' }} | ||
name: Delete caches${{ !inputs.all && format(' created by {0}', github.ref_name) || '' }} | ||
env: | ||
BRANCH_FILTER: ${{ !inputs.all && format('--branch {0}', env.BRANCH) || '' }} | ||
BRANCH_FILTER: ${{ !inputs.all && format('--branch {0}', github.ref) || '' }} | ||
run: | | ||
# prevent workflow failure while deleting cache keys | ||
set +e | ||
# delete all caches or caches created by ${{ env.BRANCH }} | ||
# delete all caches or caches created by ${{ github.ref_name }} | ||
for key in $(gh actions-cache list $BRANCH_FILTER --limit 100 | cut -f 1); do | ||
gh actions-cache delete $key $BRANCH_FILTER --confirm | ||
done |
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