From 3b37bf4a19dd24cfcaa80e495ef385158e3db6c6 Mon Sep 17 00:00:00 2001 From: Cassie Cheung Date: Tue, 9 Jul 2024 12:57:42 +0800 Subject: [PATCH] ci: don't build dependabot prs * this also only build PRs, pushes to main and tags. * this also only build PRs, pushes to main and tags. --- .github/workflows/CI.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ccb7b3f..5405c4e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -4,9 +4,16 @@ on: push: paths-ignore: - "**.md" + branches: + - 'main' + # this is needed when pushing tags manually, apparantly. + # https://github.com/actions/runner/issues/1007 + create: pull_request: paths-ignore: - "**.md" + branches-ignore: + - 'dependabot/*' jobs: CI: runs-on: ubuntu-latest @@ -29,7 +36,6 @@ jobs: with: install_url: https://releases.nixos.org/nix/nix-2.18.4/install - name: "Set Up Binary Cache" - if: github.event_name != 'pull_request' uses: cachix/cachix-action@v15 with: name: t2linux @@ -49,7 +55,7 @@ jobs: rm result done - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.') + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/v') with: files: "nixos-*.iso*"