~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/atlibs-identlink

ident.link agent-of walk with grants over CAR-verified sync.getRecord: Rust crate identlink, wasm, JS

1 collaborator
0
0
main
23 lines · 1.2 KB Raw History
# The atlibs pin set (atlibs pins.json, pins.sh): a push behind it fails, naming the sync command. Each day
# at 04:17 UTC, at main's tip, the repository syncs to it (Cargo.toml revs + cargo update, versions.env,
# atlibs.lock.json, then cargo check) and, when that passes and something changed, pushes the bump to main
# as the repository's owner (PINS_PASSWORD: an app password, granted to this workflow on main alone).
on:
  push: {refs: [refs/heads/main, refs/heads/pins/*]}
  schedule:
    - cron: '17 4 * * *'
image: rust:1.99.1-bookworm
secrets: [PINS_PASSWORD]
env:
  PINS: https://knotless.dev/johnandersen777.bsky.social/atlibs/raw/main/pins.sh
  BRANCH: main
steps:
  - name: pins
    run: |
      if [ -z "${KNOTLESS_SCHEDULE:-}" ]; then curl -sSf "$PINS" | sh -s -- check; exit; fi
      curl -sSf "$PINS" | sh -s -- sync
      if git diff --quiet; then exit 0; fi
      curl -fsSL https://knotless.dev/install.sh | sh
      export PATH="$HOME/.local/bin:$PATH"
      git -c user.name=pins -c user.email=pins@knotless.invalid commit -qam "pins: sync to the atlibs pin set"
      KNOTLESS_IDENTIFIER="${KNOTLESS_RUN_REPO%%/*}" KNOTLESS_PASSWORD="$PINS_PASSWORD" git push "knotless://$KNOTLESS_RUN_REPO" "HEAD:refs/heads/$BRANCH"