Post #164
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
name: Post on Bluesky | |
on: | |
schedule: | |
- cron: "33 * * * *" | |
workflow_dispatch: | |
jobs: | |
post: | |
name: "Post" | |
runs-on: "ubuntu-latest" | |
steps: | |
# Clone and install the Python project | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
- run: uv sync | |
# Clone and install the typescript scripts | |
- uses: actions/checkout@v4 | |
with: | |
repository: "tmr232/function-graph-overview" | |
ref: "bsky-bot" | |
path: "function-graph-overview" | |
- uses: oven-sh/setup-bun@v2 | |
- run: | | |
cd function-graph-overview | |
bun install | |
# Clone the code to render | |
- uses: actions/checkout@v4 | |
with: | |
repository: "python/cpython" | |
ref: "2bd5a7ab0f4a1f65ab8043001bd6e8416c5079bd" | |
path: "projects/CPython" | |
sparse-checkout: | | |
Python | |
Lib | |
- run: ls projects/CPython | |
- run: ls /home/runner/work/cfgbot/cfgbot/projects/CPython/Python/ast.c | |
- run: ls /home/runner/work/cfgbot/cfgbot/projects/CPython/Lib/test/test_exception_hierarchy.py | |
# Render and post | |
- run: uv run cfgbot | |
timeout-minutes: 5 | |
env: | |
CFG_RENDER_SCRIPT: "function-graph-overview/scripts/render-function.ts" | |
CLONE_SOURCE_ROOT: "projects" | |
BLUESKY_IDENTIFIER: ${{ secrets.BLUESKY_IDENTIFIER }} | |
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }} | |
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} | |
MASTODON_API_BASE_URL: ${{ secrets.MASTODON_API_BASE_URL }} |