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

40 lines
1.1 KiB
YAML
Raw Normal View History

name: "sync from forge.joshwel.co"
on:
workflow_dispatch:
schedule:
2024-08-09 11:29:44 +00:00
- cron: "0 * * * *"
permissions:
contents: write
jobs:
2024-08-09 10:39:57 +00:00
sync:
runs-on: ubuntu-latest
steps:
2024-08-09 10:39:57 +00:00
- uses: AdityaGarg8/remove-unwanted-software@v4.1
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
remove-large-packages: 'true'
remove-cached-tools: 'true'
- 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
2024-08-09 10:39:57 +00:00
- name: clone forge.joshwel.co/mark/sota
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