Skip to content

Commit 4d5a61b

Browse files
committed
add a cache delete action
1 parent e1ff8d4 commit 4d5a61b

File tree

14 files changed

+33582
-5258
lines changed

14 files changed

+33582
-5258
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,18 @@ jobs:
1717
with:
1818
node-version-file: .nvmrc
1919

20-
- name: Setup Yarn
21-
uses: threeal/[email protected]
20+
- name: Install Dependencies
21+
run: npm ci
2222

2323
- name: Check Formatting
2424
run: |
25-
yarn format
25+
npm run format
2626
git diff && git diff-index --quiet --exit-code HEAD
2727
2828
- name: Check Lint
29-
run: yarn lint
30-
31-
- name: Test Action
32-
run: yarn test
29+
run: npm run lint
3330

3431
- name: Build Action
3532
run: |
36-
yarn build
33+
npm run build
3734
git diff && git diff-index --quiet --exit-code HEAD

.github/workflows/test.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

action.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# TODO: Modify the following metadata according to the project's specifications.
2-
3-
name: Mkdir Action
4-
author: Alfi Maulana
5-
description: Create a new directory
1+
name: "Delete Blacksmith Cache"
2+
author: Aayush Shah
3+
description: "Deletes a cache or specific cache version from Blacksmith"
64
branding:
75
icon: folder-plus
86
color: black
97
inputs:
10-
path:
11-
description: Path of the directory to create
8+
key:
9+
description: "The cache key to delete"
1210
required: true
11+
version:
12+
description: "Specific version of the cache to delete (optional)"
13+
required: false
1314
runs:
14-
using: node20
15-
main: dist/main.bundle.mjs
15+
using: "node20"
16+
main: "dist/index.js"

dist/index.cjs

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.cjs.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)