wirm/.github/workflows/sync.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2025-01-17 17:56:36 +00:00
name: "sync from forge.joshwel.co"
on:
workflow_dispatch:
2025-01-17 18:13:34 +00:00
schedule:
- cron: "0 * * * *" # every hour
2025-01-17 17:56:36 +00:00
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- 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@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: clone forge.joshwel.co/mark/wirm
run: |
mkdir -p ${{ runner.temp }}/wirm
git clone https://forge.joshwel.co/mark/wirm ${{ runner.temp }}/wirm
- name: restep
env:
SS_RESTEPPER_TOKEN: ${{ secrets.PAT }}
run: |
cd ${{ runner.temp }}/wirm
nix develop --command python sync.py