Skip to content

Commit

Permalink
ci: don't build dependabot prs
Browse files Browse the repository at this point in the history
* this also only build PRs, pushes to main and tags.

* this also only build PRs, pushes to main and tags.
  • Loading branch information
soopyc committed Jul 10, 2024
1 parent 6c77c7b commit 3b37bf4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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*"

0 comments on commit 3b37bf4

Please sign in to comment.