Skip to content

Commit 3b37bf4

Browse files
committed
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.
1 parent 6c77c7b commit 3b37bf4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ on:
44
push:
55
paths-ignore:
66
- "**.md"
7+
branches:
8+
- 'main'
9+
# this is needed when pushing tags manually, apparantly.
10+
# https://github.com/actions/runner/issues/1007
11+
create:
712
pull_request:
813
paths-ignore:
914
- "**.md"
15+
branches-ignore:
16+
- 'dependabot/*'
1017
jobs:
1118
CI:
1219
runs-on: ubuntu-latest
@@ -29,7 +36,6 @@ jobs:
2936
with:
3037
install_url: https://releases.nixos.org/nix/nix-2.18.4/install
3138
- name: "Set Up Binary Cache"
32-
if: github.event_name != 'pull_request'
3339
uses: cachix/cachix-action@v15
3440
with:
3541
name: t2linux
@@ -49,7 +55,7 @@ jobs:
4955
rm result
5056
done
5157
- name: Release
52-
uses: softprops/action-gh-release@v1
53-
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.')
58+
uses: softprops/action-gh-release@v2
59+
if: startsWith(github.ref, 'refs/tags/v')
5460
with:
5561
files: "nixos-*.iso*"

0 commit comments

Comments
 (0)