Skip to content

Commit 7467c3c

Browse files
authored
refactor: use @actions/artifact (#24) - closes #19, #21
* Added @actions/artifact as dependency * Replace ArtifactClient with DefaultArtifactClient from @actions/artifact * Build dist * Deprecate token argument to action
1 parent 3f83cd6 commit 7467c3c

File tree

10 files changed

+116367
-23378
lines changed

10 files changed

+116367
-23378
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ jobs:
3535
name: my-artifact-3
3636
path: world.txt
3737

38-
- uses: actions/upload-artifact@v4
39-
with:
40-
name: you-artifact
41-
path: world.txt
42-
4338
- name: Delete (specific, glob disabled)
4439
uses: ./
4540
with:
@@ -50,9 +45,3 @@ jobs:
5045
uses: ./
5146
with:
5247
name: my-*
53-
54-
- name: Delete (specific, glob enabled, and token specified)
55-
uses: ./
56-
with:
57-
token: ${{ secrets.GITHUB_TOKEN }}
58-
name: you-artifact

.github/workflows/example.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ jobs:
3636
name: my-artifact-3
3737
path: world.txt
3838

39-
- uses: actions/upload-artifact@v4
40-
with:
41-
name: you-artifact
42-
path: world.txt
43-
4439
- name: Delete (specific, glob disabled)
4540
uses: geekyeggo/delete-artifact@v4
4641
with:
@@ -51,9 +46,3 @@ jobs:
5146
uses: geekyeggo/delete-artifact@v4
5247
with:
5348
name: my-*
54-
55-
- name: Delete (specific, glob enabled, with token)
56-
uses: geekyeggo/delete-artifact@v4
57-
with:
58-
name: you-artifact
59-
token: ${{ secrets.GITHUB_TOKEN }}

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ inputs:
88
description: GitHub token with read and write access to actions for the repository.
99
required: true
1010
default: ${{ github.token }}
11+
deprecationMessage: This isn't needed anymore.
1112
useGlob:
1213
description: Indicates whether the name, or names, should be treated as glob patterns.
1314
required: false

0 commit comments

Comments
 (0)