File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : EkLine
2
2
on :
3
+ push :
4
+ branches :
5
+ - master
6
+ - main
3
7
pull_request :
4
- types : [labeled]
5
8
permissions : write-all
6
9
jobs :
7
10
test-pr-review :
Original file line number Diff line number Diff line change 9
9
get-diff :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
+ - name : Get current date
13
+ id : date
14
+ run : echo "::set-output name=date::$(date +'%Y-%m-%d')"
12
15
- name : Check out HEAD rev
13
16
uses : actions/checkout@v2
14
17
with :
@@ -21,21 +24,21 @@ jobs:
21
24
path : base
22
25
- name : Create dir
23
26
run : |
24
- mkdir changelog
27
+ mkdir -p changelog/beta changelog/public
25
28
- name : Running public OpenAPI Spec diff action
26
29
uses : oasdiff/oasdiff-action/diff@main
27
30
with :
28
31
base : ' base/fern/apis/public/openapi-public.yaml'
29
32
revision : ' head/fern/apis/public/openapi-public.yaml'
30
33
format : text
31
- output-to-file : ' changelog/public-diff .md'
34
+ output-to-file : ' changelog/public/${{ steps.date.outputs.date }}_oasdiff .md'
32
35
- name : Running beta OpenAPI Spec diff action
33
36
uses : oasdiff/oasdiff-action/diff@main
34
37
with :
35
38
base : ' base/fern/apis/beta/openapi-beta.yaml'
36
39
revision : ' head/fern/apis/beta/openapi-beta.yaml'
37
40
format : text
38
- output-to-file : ' changelog/beta-diff .md'
41
+ output-to-file : ' changelog/beta/${{ steps.date.outputs.date }}_oasdiff .md'
39
42
- name : Archive changelogs
40
43
uses : actions/upload-artifact@v4
41
44
with :
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ node_modules
2
2
fern /dist
3
3
fern /* /definition /
4
4
.DS_Store
5
- .idea
5
+ .idea
6
+ temp
You can’t perform that action at this time.
0 commit comments