Skip to content

Example

Example #6597

Workflow file for this run

name: Example
# an example workflow that also monitors success of the preview api
on:
schedule:
- cron: "0 */6 * * *"
# every 6 hours
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create test file
run: echo hello > world.txt
- uses: actions/upload-artifact@v4
with:
name: my-artifact
path: world.txt
- uses: actions/upload-artifact@v4
with:
name: my-artifact-2
path: world.txt
- uses: actions/upload-artifact@v4
with:
name: my-artifact-3
path: world.txt
- name: Delete (specific, glob disabled)
uses: geekyeggo/delete-artifact@v5
with:
name: my-artifact
useGlob: false
- name: Delete (pattern, glob enabled)
uses: geekyeggo/delete-artifact@v5
with:
name: my-*