mirror of
https://github.com/jellyfin/jellyfin-sdk-swift.git
synced 2024-11-27 00:10:31 +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
|
- name: Generate API
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE
|
||||||
make update
|
make update-unstable
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
run: |
|
run: |
|
||||||
@ -34,4 +34,4 @@ jobs:
|
|||||||
git checkout -B unstable
|
git checkout -B unstable
|
||||||
git add .
|
git add .
|
||||||
git commit --allow-empty -m "Update unstable generation"
|
git commit --allow-empty -m "Update unstable generation"
|
||||||
git push --force origin openapi-unstable
|
git push --force origin unstable
|
||||||
|
11
Makefile
11
Makefile
@ -10,4 +10,13 @@ download:
|
|||||||
# Run CreateAPI
|
# Run CreateAPI
|
||||||
.PHONY: generate
|
.PHONY: generate
|
||||||
generate:
|
generate:
|
||||||
swift package --allow-writing-to-package-directory generate-api
|
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