mirror of
https://github.com/jellyfin/jellyfin-sdk-swift.git
synced 2024-11-23 06:09:58 +00:00
Add Make unstable generation (#27)
This commit is contained in:
parent
70c2fdec39
commit
337faf3820
4
.github/workflows/sdk-unstable-branch.yaml
vendored
4
.github/workflows/sdk-unstable-branch.yaml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
- name: Generate API
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
make update
|
||||
make update-unstable
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
@ -34,4 +34,4 @@ jobs:
|
||||
git checkout -B unstable
|
||||
git add .
|
||||
git commit --allow-empty -m "Update unstable generation"
|
||||
git push --force origin openapi-unstable
|
||||
git push --force origin unstable
|
||||
|
9
Makefile
9
Makefile
@ -11,3 +11,12 @@ download:
|
||||
.PHONY: generate
|
||||
generate:
|
||||
swift package --allow-writing-to-package-directory generate-api
|
||||
|
||||
# Download latest unstable spec and run CreateAPI
|
||||
.PHONY: update-unstable
|
||||
update-unstable: download-unstable generate
|
||||
|
||||
# Donload the latest Jellyfin unstable spec
|
||||
.PHONY: download-unstable
|
||||
download-unstable:
|
||||
curl -fsSL https://repo.jellyfin.org/releases/openapi/jellyfin-openapi-unstable.json -o Sources/jellyfin-openapi-stable.json
|
Loading…
Reference in New Issue
Block a user