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.
This commit is contained in:
parent
6c77c7b89f
commit
3b37bf4a19
1 changed files with 9 additions and 3 deletions
12
.github/workflows/CI.yml
vendored
12
.github/workflows/CI.yml
vendored
|
|
@ -4,9 +4,16 @@ on:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
# this is needed when pushing tags manually, apparantly.
|
||||||
|
# https://github.com/actions/runner/issues/1007
|
||||||
|
create:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
|
branches-ignore:
|
||||||
|
- 'dependabot/*'
|
||||||
jobs:
|
jobs:
|
||||||
CI:
|
CI:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -29,7 +36,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
install_url: https://releases.nixos.org/nix/nix-2.18.4/install
|
install_url: https://releases.nixos.org/nix/nix-2.18.4/install
|
||||||
- name: "Set Up Binary Cache"
|
- name: "Set Up Binary Cache"
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: cachix/cachix-action@v15
|
uses: cachix/cachix-action@v15
|
||||||
with:
|
with:
|
||||||
name: t2linux
|
name: t2linux
|
||||||
|
|
@ -49,7 +55,7 @@ jobs:
|
||||||
rm result
|
rm result
|
||||||
done
|
done
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
with:
|
with:
|
||||||
files: "nixos-*.iso*"
|
files: "nixos-*.iso*"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue