Skip to content

Commit

Permalink
Separate out actions for schedule and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Oct 12, 2022
1 parent 54ab544 commit 2b1f67d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
name: CI
# an example workflow that also monitors success of the preview api

on:
push:
branches:
- master

schedule:
- cron: '0 */6 * * *'
# every 6 hours

defaults:
run:
shell: bash
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
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: windows-latest

steps:

- name: Checkout
uses: actions/checkout@v2

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

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

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

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

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

- name: Delete (specific, glob disabled)
uses: geekyeggo/delete-artifact@v2
with:
name: my-artifact
useGlob: false

- name: Delete (pattern, glob enabled)
uses: geekyeggo/delete-artifact@v2
with:
name: my-*

- name: Delete (specific, glob enabled)
uses: geekyeggo/delete-artifact@v2
with:
name: you-artifact
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![Example](https://github.com/GeekyEggo/delete-artifact/workflows/CI/badge.svg)
![CI](https://github.com/GeekyEggo/delete-artifact/workflows/CI/badge.svg)
![Example](https://github.com/GeekyEggo/delete-artifact/workflows/Example/badge.svg)

# Delete artifacts

Expand Down

0 comments on commit 2b1f67d

Please sign in to comment.