Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA builds only when Garnix fails evaluation check #286

Merged
merged 22 commits into from
Jan 23, 2025
Next Next commit
check suites api debugging
  • Loading branch information
gvolpe committed Jan 22, 2025
commit ad0ad77d46a1e81b05d41dadda96a1c9dbd2056a
3 changes: 3 additions & 0 deletions .github/workflows/home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
build:
runs-on: ubuntu-latest

# temporarily disabling these jobs
if: false

strategy:
fail-fast: true
matrix:
Expand Down
34 changes: 11 additions & 23 deletions .github/workflows/nixos.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: NixOS

on:
check_run:
types: [failure]
pull_request:
paths-ignore:
- 'home/**'
push:
branches:
- master
paths-ignore:
- 'GNOME.md'
- 'README.md'
Expand All @@ -15,25 +19,6 @@ on:
- 'switch'
- '.mergify.yml'
- 'garnix.yaml'
#on:
#pull_request:
#paths-ignore:
#- 'home/**'
#push:
#branches:
#- master
#paths-ignore:
#- 'GNOME.md'
#- 'README.md'
#- 'notes/**'
#- '.git-crypt/**'
#- '.gitattributes'
#- '.gitignore'
#- 'home/**'
#- 'outputs/hm.nix'
#- 'switch'
#- '.mergify.yml'
#- 'garnix.yaml'

jobs:
build:
Expand All @@ -58,8 +43,11 @@ jobs:

- name: "DEBUG"
run: |
echo "Event state: ${{ github.event.state }}"
echo "Event desc: ${{ github.event.description }}"
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/gvolpe/nix-config/commits/${{ github.sha }}/check-suites

- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v30
Expand Down
Loading