You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,27 @@
1
-
# SPEC 0 Version Action
1
+
# SPEC-0 Versions Action
2
2
3
3
This repository contains a GitHub Action to generate the files required for the SPEC-0 documentation.
4
4
5
5
## Using the action
6
6
7
-
## Automatically updating dependencies
7
+
```yaml
8
+
name: Generate spec-zero data
8
9
9
-
To help projects stay compliant with this spec, we additionally provide a `schedule.json` file that can be used by CI systems to determine new version boundaries.
10
+
on:
11
+
push:
12
+
branches:
13
+
- main
14
+
15
+
jobs:
16
+
devstats-query:
17
+
runs-on: ubuntu-latest
18
+
steps:
19
+
- uses: scientific-python/spec-zero-tools@main
20
+
```
21
+
22
+
The above would produce an artifact named `spec-zero-versions`, the following files: `schedule.yaml`,`schedule.md` and `chart.md`.
23
+
24
+
To help projects stay compliant with SPEC-0, we provide a `schedule.json` file that can be used by CI systems to determine new version boundaries.
10
25
The structure of the file is as follows:
11
26
12
27
```json
@@ -24,17 +39,17 @@ All information in the json file is in a string format that should be easy to us
24
39
The date is the first timestamp of the relevant quarter.
25
40
Thus a workflow for using this file could be:
26
41
27
-
1.fetch`schedule.json`
28
-
2.determine maximum date that is smaller than current date
29
-
3.update packages listed with new minimum versions
42
+
1. Fetch `schedule.json`
43
+
2. Determine maximum date that is smaller than current date
44
+
3. Update packages listed with new minimum versions
30
45
31
46
You can obtain the new versions you should set by using this `jq` expression:
0 commit comments