-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update CI to prevent extra commits
- Loading branch information
1 parent
80ee7bb
commit 769ae04
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,23 @@ on: | |
permissions: | ||
contents: write | ||
jobs: | ||
get-changed-files: | ||
name: Get Changed Files | ||
runs-on: ubuntu-latest | ||
outputs: | ||
oas-modified: ${{ steps.oas-modified.outputs.any_modified }} | ||
steps: | ||
- name: Check if `openapi.yaml` has changed | ||
uses: tj-actions/[email protected] | ||
id: oas-modified | ||
with: | ||
files: | | ||
openapi.yaml | ||
generate-js: | ||
name: Generate JavaScript SDK | ||
runs-on: ubuntu-latest | ||
needs: [get-changed-files] | ||
if: needs.get-changed-files.outputs.oas-modified == 'true' | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
@@ -34,5 +48,5 @@ jobs: | |
git config --global user.name "team-devx" | ||
gh pr checkout ${{ github.event.pull_request.number }} | ||
git add src/ | ||
git commit --allow-empty -m "Update SDK based on openapi.yaml changes" | ||
git commit -m "chore: build SDK from openapi.yaml changes" | ||
git push |