mirror of
https://github.com/DeterminateSystems/ci.git
synced 2025-06-14 21:37:53 +02:00
made checks opt in
This commit is contained in:
parent
af965b6e9d
commit
53fdb8490a
1 changed files with 10 additions and 0 deletions
10
.github/workflows/workflow.yml
vendored
10
.github/workflows/workflow.yml
vendored
|
@ -18,6 +18,12 @@ on:
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
enable-checks:
|
||||||
|
description: |
|
||||||
|
Whether to enable GitHub Checks API integration in the workflow.
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
directory:
|
directory:
|
||||||
description: |
|
description: |
|
||||||
The root directory of your flake.
|
The root directory of your flake.
|
||||||
|
@ -90,6 +96,8 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
contents: "read"
|
contents: "read"
|
||||||
|
checks: ${{ inputs.enable-checks && 'write' || 'none' }}
|
||||||
|
checks: ${{ inputs.enable-checks && 'write' || 'none' }}
|
||||||
checks: "write"
|
checks: "write"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -105,6 +113,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.ssh-private-key }}
|
ssh-private-key: ${{ secrets.ssh-private-key }}
|
||||||
- name: Create Check Run
|
- name: Create Check Run
|
||||||
|
if: ${{ inputs.enable-checks }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -220,6 +229,7 @@ jobs:
|
||||||
run: nix run "$FLAKE_ITER_FLAKEREF" -- --verbose build
|
run: nix run "$FLAKE_ITER_FLAKEREF" -- --verbose build
|
||||||
|
|
||||||
- name: Create Build Check Run
|
- name: Create Build Check Run
|
||||||
|
if: ${{ inputs.enable-checks }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue