diff --git a/.github/workflows/ekline.yml b/.github/workflows/ekline.yml index 9b310197..5c8ceed3 100644 --- a/.github/workflows/ekline.yml +++ b/.github/workflows/ekline.yml @@ -1,7 +1,10 @@ name: EkLine on: + push: + branches: + - master + - main pull_request: - types: [labeled] permissions: write-all jobs: test-pr-review: diff --git a/.github/workflows/oasdiff.yml b/.github/workflows/oasdiff.yml index 541bc87b..3a91b930 100644 --- a/.github/workflows/oasdiff.yml +++ b/.github/workflows/oasdiff.yml @@ -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: @@ -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: diff --git a/.gitignore b/.gitignore index 2eb523d1..91a128ca 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules fern/dist fern/*/definition/ .DS_Store -.idea \ No newline at end of file +.idea +temp \ No newline at end of file