-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.31 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Testing the action
on:
schedule:
- cron: "0 0 * * *" # <= runs every 24 hours
workflow_dispatch:
jobs:
updating-badge-files:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- package: fastapi
color: '#039284'
- package: requests
color: yellow
- package: django
color: '#0A4A33'
- package: pydantic
color: '#E51EE8'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run action
uses: ./
with:
package_name: ${{ matrix.package }}
file_name: ${{ matrix.package }}_badge.svg
badge_color: ${{ matrix.color }}
- name: Upload badges as artifact
uses: actions/upload-artifact@v3
with:
path: .pypi_chart/${{ matrix.package }}_badge.svg
commit-badges:
needs: updating-badge-files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download badges artifact
uses: actions/download-artifact@v3
with:
path: .pypi_chart/
merge-multiple: true
- name: Commiting
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'chart badge updated'