Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Address #11 and #12: Adds GH Action to pull latest OpenAPI Spec Daily #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/fetch_openapi_spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Fetch Latest ATProto OpenAPI Spec Daily

on:
schedule:
- cron: '0 0 * * *' # runs midnight daily

jobs:
fetch:
runs-on: ubuntu-latest
steps:
- name: Fetch JSON file
run: |
curl -o resources/atproto-xrpc-openapi.LATEST.json https://raw.githubusercontent.com/bluesky-social/bsky-docs/main/atproto-openapi-types/spec/api.json
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this basically downloading the updated JSON to the github actions runner VM? How do we get it into our repo?

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ pom.xml.asc

resources/dev-config.edn
src/net/gosha/atproto/scratch.clj
/.portal/
Loading