Skip to content

Commit f0ea7bc

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

File tree

10 files changed

+2606
-5178
lines changed

10 files changed

+2606
-5178
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ 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
29+
run: npm run lint
3030

3131
- name: Test Action
32-
run: yarn test
32+
run: npm test
3333

3434
- name: Build Action
3535
run: |
36-
yarn build
36+
npm run build
3737
git diff && git diff-index --quiet --exit-code HEAD

.github/workflows/test.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ on:
77
jobs:
88
test-action:
99
name: Test Action
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
fail-fast: false
13-
matrix:
14-
os: [ubuntu-22.04, macos-14, windows-2022]
10+
runs-on: blacksmith
1511
steps:
1612
- name: Checkout Action
1713
uses: actions/[email protected]

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.js

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

dist/index.js.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)