Skip to content

Commit 2b1f67d

Browse files
committed
Separate out actions for schedule and CI
1 parent 54ab544 commit 2b1f67d

File tree

3 files changed

+61
-6
lines changed

3 files changed

+61
-6
lines changed

.github/workflows/ci.yml

-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: CI
2-
# an example workflow that also monitors success of the preview api
32

43
on:
54
push:
65
branches:
76
- master
87

9-
schedule:
10-
- cron: '0 */6 * * *'
11-
# every 6 hours
12-
138
defaults:
149
run:
1510
shell: bash

.github/workflows/example.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Example
2+
# an example workflow that also monitors success of the preview api
3+
4+
on:
5+
schedule:
6+
- cron: '0 */6 * * *'
7+
# every 6 hours
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
test:
15+
runs-on: windows-latest
16+
17+
steps:
18+
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Create test file
23+
run: echo hello > world.txt
24+
25+
- uses: actions/upload-artifact@v2
26+
with:
27+
name: my-artifact
28+
path: world.txt
29+
30+
- uses: actions/upload-artifact@v2
31+
with:
32+
name: my-artifact-2
33+
path: world.txt
34+
35+
- uses: actions/upload-artifact@v2
36+
with:
37+
name: my-artifact-3
38+
path: world.txt
39+
40+
- uses: actions/upload-artifact@v2
41+
with:
42+
name: you-artifact
43+
path: world.txt
44+
45+
- name: Delete (specific, glob disabled)
46+
uses: geekyeggo/delete-artifact@v2
47+
with:
48+
name: my-artifact
49+
useGlob: false
50+
51+
- name: Delete (pattern, glob enabled)
52+
uses: geekyeggo/delete-artifact@v2
53+
with:
54+
name: my-*
55+
56+
- name: Delete (specific, glob enabled)
57+
uses: geekyeggo/delete-artifact@v2
58+
with:
59+
name: you-artifact

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
![Example](https://github.com/GeekyEggo/delete-artifact/workflows/CI/badge.svg)
1+
![CI](https://github.com/GeekyEggo/delete-artifact/workflows/CI/badge.svg)
2+
![Example](https://github.com/GeekyEggo/delete-artifact/workflows/Example/badge.svg)
23

34
# Delete artifacts
45

0 commit comments

Comments
 (0)