diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index cae0a9d..baf34de 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -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 }}