Skip to content

Commit 8eb5297

Browse files
GitHub actions (#131)
* Update ekline.yml Fix trigger to run on all PRs. * output filenames * ignore temp * Update oasdiff.yml --------- Co-authored-by: Atul-Butola <[email protected]>
1 parent efb78a1 commit 8eb5297

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/ekline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: EkLine
22
on:
3+
push:
4+
branches:
5+
- master
6+
- main
37
pull_request:
4-
types: [labeled]
58
permissions: write-all
69
jobs:
710
test-pr-review:

.github/workflows/oasdiff.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
get-diff:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Get current date
13+
id: date
14+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
1215
- name: Check out HEAD rev
1316
uses: actions/checkout@v2
1417
with:
@@ -21,21 +24,21 @@ jobs:
2124
path: base
2225
- name: Create dir
2326
run: |
24-
mkdir changelog
27+
mkdir -p changelog/beta changelog/public
2528
- name: Running public OpenAPI Spec diff action
2629
uses: oasdiff/oasdiff-action/diff@main
2730
with:
2831
base: 'base/fern/apis/public/openapi-public.yaml'
2932
revision: 'head/fern/apis/public/openapi-public.yaml'
3033
format: text
31-
output-to-file: 'changelog/public-diff.md'
34+
output-to-file: 'changelog/public/${{ steps.date.outputs.date }}_oasdiff.md'
3235
- name: Running beta OpenAPI Spec diff action
3336
uses: oasdiff/oasdiff-action/diff@main
3437
with:
3538
base: 'base/fern/apis/beta/openapi-beta.yaml'
3639
revision: 'head/fern/apis/beta/openapi-beta.yaml'
3740
format: text
38-
output-to-file: 'changelog/beta-diff.md'
41+
output-to-file: 'changelog/beta/${{ steps.date.outputs.date }}_oasdiff.md'
3942
- name: Archive changelogs
4043
uses: actions/upload-artifact@v4
4144
with:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
fern/dist
33
fern/*/definition/
44
.DS_Store
5-
.idea
5+
.idea
6+
temp

0 commit comments

Comments
 (0)