Skip to content

Commit

Permalink
add a cache delete action
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushshah15 committed Nov 24, 2024
1 parent e1ff8d4 commit cb5aa96
Show file tree
Hide file tree
Showing 12 changed files with 84,230 additions and 5,181 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@ jobs:
with:
node-version-file: .nvmrc

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

- name: Check Formatting
run: |
yarn format
npm run format
git diff && git diff-index --quiet --exit-code HEAD
- name: Check Lint
run: yarn lint

- name: Test Action
run: yarn test
run: npm run lint

- name: Build Action
run: |
yarn build
npm run build
git diff && git diff-index --quiet --exit-code HEAD
6 changes: 1 addition & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ on:
jobs:
test-action:
name: Test Action
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-14, windows-2022]
runs-on: blacksmith
steps:
- name: Checkout Action
uses: actions/[email protected]
Expand Down
19 changes: 10 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# TODO: Modify the following metadata according to the project's specifications.

name: Mkdir Action
author: Alfi Maulana
description: Create a new directory
name: "Delete Blacksmith Cache"
author: Aayush Shah
description: "Deletes a cache or specific cache version from Blacksmith"
branding:
icon: folder-plus
color: black
inputs:
path:
description: Path of the directory to create
key:
description: "The cache key to delete"
required: true
version:
description: "Specific version of the cache to delete (optional)"
required: false
runs:
using: node20
main: dist/main.bundle.mjs
using: "node20"
main: "dist/index.cjs"
46 changes: 46 additions & 0 deletions dist/index.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.cjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb5aa96

Please sign in to comment.