ci: dont checkout + free up space

This commit is contained in:
Mark Joshwel 2024-08-09 18:27:31 +08:00
parent 3e74eca773
commit b05c314f5f

View file

@ -7,17 +7,27 @@ permissions:
contents: write contents: write
jobs: jobs:
check: sync:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - 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'
verbose: 'true'
- uses: cachix/install-nix-action@v27 - uses: cachix/install-nix-action@v27
with: with:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }} github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/magic-nix-cache-action@main
- name: get the forge's repo - name: clone forge.joshwel.co/mark/sota
run: | run: |
mkdir -p ${{ runner.temp }}/sota mkdir -p ${{ runner.temp }}/sota
git clone https://forge.joshwel.co/mark/sota ${{ runner.temp }}/sota git clone https://forge.joshwel.co/mark/sota ${{ runner.temp }}/sota