aux-search/.github/workflows/check-flake-files.yml
Yannik Sander 2b7ce58d2f
Use composite action to reuse setup steps (#433)
* Add github action to check flake groups
* Run on pull_requests and filter ~files~ *paths*
* Use composite action to reuse setup steps
* Use common setuo for frontend action
* Fix path to action
* Remove checkout action from common setup
Checkout needed to fetch action
* Provide secrets to action

Co-authored-by: Rok Garbas <rok@garbas.si>
2022-02-28 00:10:09 +01:00

42 lines
795 B
YAML

name: "Check Flake Groups"
on:
workflow_dispatch:
pull_request:
paths:
- 'flakes/**.toml'
jobs:
automatic-custom-flakes-check:
runs-on: ubuntu-latest
strategy:
fail-fast: true
env:
RUST_LOG: debug
steps:
- name: Checking out the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/common-setup
with:
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: Building import_scripts
run: |
nix build .#flake-info
- name: Try importing all custom flakes
run: |
for flake_group in flakes/**/*.toml
do
./result/bin/flake-info group "$flake_group" "$(basename "$flake_group" .toml)"
done