Skip to content

Commit

Permalink
Add Make unstable generation (jellyfin#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
LePips authored Nov 2, 2023
1 parent 70c2fde commit 337faf3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sdk-unstable-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Generate API
run: |
cd $GITHUB_WORKSPACE
make update
make update-unstable
- name: Commit changes
run: |
Expand All @@ -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
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ download:
# Run CreateAPI
.PHONY: 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

0 comments on commit 337faf3

Please sign in to comment.