This repository has been archived on 2024-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
sota/.github/workflows/sync.yml

31 lines
802 B
YAML
Raw Normal View History

name: "sync from forge.joshwel.co"
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
permissions:
contents: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: get the forge's repo
run: |
mkdir -p ${{ runner.temp }}/sota
git clone https://forge.joshwel.co/mark/sota ${{ runner.temp }}/sota
- name: restep
env:
SS_RESTEPPER_TOKEN: ${{ secrets.PAT }}
run: |
cd ${{ runner.temp }}/sota
nix develop --command python sync.py