Skip to content

GitHub actions #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading