Skip to content

Commit

Permalink
build: update example to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Dec 24, 2023
1 parent 9d15d16 commit 6b67656
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,43 +16,46 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Create test file
run: echo hello > world.txt

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

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: my-artifact-2
path: world.txt

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: my-artifact-3
path: world.txt

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

- name: Delete (specific, glob disabled)
uses: geekyeggo/delete-artifact@v2
uses: geekyeggo/delete-artifact@v4
with:
name: my-artifact
useGlob: false
token: ${{ secrets.GITHUB_TOKEN }}

- name: Delete (pattern, glob enabled)
uses: geekyeggo/delete-artifact@v2
uses: geekyeggo/delete-artifact@v4
with:
name: my-*
token: ${{ secrets.GITHUB_TOKEN }}

- name: Delete (specific, glob enabled)
uses: geekyeggo/delete-artifact@v2
uses: geekyeggo/delete-artifact@v4
with:
name: you-artifact
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6b67656

Please sign in to comment.