From 9bb0a5808a867420e25d833015243b3c23e178f0 Mon Sep 17 00:00:00 2001 From: Mark Joshwel Date: Fri, 9 Aug 2024 18:39:57 +0800 Subject: [PATCH] ci: dont checkout + free up space --- .github/workflows/sync.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 9cde939..d22df98 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -7,17 +7,26 @@ permissions: contents: write jobs: - check: + sync: runs-on: ubuntu-latest 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' + - 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 + - name: clone forge.joshwel.co/mark/sota run: | mkdir -p ${{ runner.temp }}/sota git clone https://forge.joshwel.co/mark/sota ${{ runner.temp }}/sota