Skip to content

asdf

asdf #1

name: 'Compare Disko NixOS configs'

Check failure on line 1 in .github/workflows/reusable-compare-disko-create.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable-compare-disko-create.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: results
on:
# Allow this workflow to be reused by other workflows:
workflow_call:
inputs:
runner:
description: 'JSON-encoded list of runner labels'
default: '["self-hosted"]'
required: false
type: string
secrets:
NIX_GITHUB_TOKEN:
description: GitHub token to add as access-token in nix.conf
required: false
CACHIX_AUTH_TOKEN:
description: 'Cachix auth token'
required: true
workflow_dispatch:
jobs:
post-initial-comment:
runs-on: ${{ fromJSON(inputs.runner) }}
steps:
- name: 'Post initial disko status comment'
uses: marocchino/[email protected]
with:
recreate: true
message: |
Thanks for your Pull Request!
This comment will be updated automatically with the status of disko on each machine.
compare-disko-create:
runs-on: ${{ fromJSON(inputs.runner) }}
name: 'Compare disko _create on machines'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix
uses: metacraft-labs/nixos-modules/.github/install-nix@main
with:
nix-github-token: ${{ secrets.BLOCKSENSE_GITHUB_ACCESS_TOKEN }}
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
cachix-cache: ${{ vars.CACHIX_CACHE }}
trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }}
substituters: ${{ vars.SUBSTITUTERS }}
- name: Compare disko configurations
run: nix run --accept-flake-config github:metacraft-labs/nixos-modules/${{ env.MCL_BRANCH }}#mcl compare_disko create
compare-disko-config:
runs-on: ${{ fromJSON(inputs.runner) }}
name: 'Compare disko _config on machines'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix
uses: metacraft-labs/nixos-modules/.github/install-nix@main
with:
nix-github-token: ${{ secrets.BLOCKSENSE_GITHUB_ACCESS_TOKEN }}
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
cachix-cache: ${{ vars.CACHIX_CACHE }}
trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }}
substituters: ${{ vars.SUBSTITUTERS }}
- name: Compare disko configurations
run: nix run --accept-flake-config github:metacraft-labs/nixos-modules/${{ env.MCL_BRANCH }}#mcl compare_disko config
results:
runs-on: ${{ fromJSON(inputs.runner) }}
needs: [post-initial-comment, compare-disko-create, compare-disko-config]
name: 'Final results'