Skip to content

Commit

Permalink
refactor: use @actions/artifact (#24) - closes #19, #21
Browse files Browse the repository at this point in the history
* Added @actions/artifact as dependency
* Replace ArtifactClient with DefaultArtifactClient from @actions/artifact
* Build dist
* Deprecate token argument to action
  • Loading branch information
s-weigand authored Mar 18, 2024
1 parent 3f83cd6 commit 7467c3c
Show file tree
Hide file tree
Showing 10 changed files with 116,367 additions and 23,378 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ jobs:
name: my-artifact-3
path: world.txt

- uses: actions/upload-artifact@v4
with:
name: you-artifact
path: world.txt

- name: Delete (specific, glob disabled)
uses: ./
with:
Expand All @@ -50,9 +45,3 @@ jobs:
uses: ./
with:
name: my-*

- name: Delete (specific, glob enabled, and token specified)
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: you-artifact
11 changes: 0 additions & 11 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ jobs:
name: my-artifact-3
path: world.txt

- uses: actions/upload-artifact@v4
with:
name: you-artifact
path: world.txt

- name: Delete (specific, glob disabled)
uses: geekyeggo/delete-artifact@v4
with:
Expand All @@ -51,9 +46,3 @@ jobs:
uses: geekyeggo/delete-artifact@v4
with:
name: my-*

- name: Delete (specific, glob enabled, with token)
uses: geekyeggo/delete-artifact@v4
with:
name: you-artifact
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ inputs:
description: GitHub token with read and write access to actions for the repository.
required: true
default: ${{ github.token }}
deprecationMessage: This isn't needed anymore.
useGlob:
description: Indicates whether the name, or names, should be treated as glob patterns.
required: false
Expand Down
Loading

0 comments on commit 7467c3c

Please sign in to comment.