Skip to content

Commit

Permalink
GitHub actions (#131)
Browse files Browse the repository at this point in the history
* Update ekline.yml

Fix trigger to run on all PRs.

* output filenames

* ignore temp

* Update oasdiff.yml

---------

Co-authored-by: Atul-Butola <[email protected]>
  • Loading branch information
bc-devrev and Atul-Butola authored Jan 7, 2025
1 parent efb78a1 commit 8eb5297
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ekline.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: EkLine
on:
push:
branches:
- master
- main
pull_request:
types: [labeled]
permissions: write-all
jobs:
test-pr-review:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/oasdiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
get-diff:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Check out HEAD rev
uses: actions/checkout@v2
with:
Expand All @@ -21,21 +24,21 @@ jobs:
path: base
- name: Create dir
run: |
mkdir changelog
mkdir -p changelog/beta changelog/public
- name: Running public OpenAPI Spec diff action
uses: oasdiff/oasdiff-action/diff@main
with:
base: 'base/fern/apis/public/openapi-public.yaml'
revision: 'head/fern/apis/public/openapi-public.yaml'
format: text
output-to-file: 'changelog/public-diff.md'
output-to-file: 'changelog/public/${{ steps.date.outputs.date }}_oasdiff.md'
- name: Running beta OpenAPI Spec diff action
uses: oasdiff/oasdiff-action/diff@main
with:
base: 'base/fern/apis/beta/openapi-beta.yaml'
revision: 'head/fern/apis/beta/openapi-beta.yaml'
format: text
output-to-file: 'changelog/beta-diff.md'
output-to-file: 'changelog/beta/${{ steps.date.outputs.date }}_oasdiff.md'
- name: Archive changelogs
uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
fern/dist
fern/*/definition/
.DS_Store
.idea
.idea
temp

0 comments on commit 8eb5297

Please sign in to comment.