Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/flake-review-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Flake Review Build

on:
pull_request:
branches: [master, dev]
paths:
- ".github/workflows/flake-review-build.yml"
- ".github/workflows/flake-review-comment.yml"
- "flake.lock"
- "flake.nix"
- "nix/**"
- "**/package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
workflow_dispatch:
inputs:
pr-url:
description: "PR URL to review"
type: string
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || inputs.pr-url || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
# https://github.com/ojsef39/flake-review/blob/main/.github/workflows/flake-review-build-reusable.yml
uses: ojsef39/flake-review/.github/workflows/flake-review-build-reusable.yml@0.3.0
with:
flake-review-ref: "0.3.0"
packages: "default"
matrix: '[{"runner":"macos-latest","systems":"aarch64-darwin","name":"darwin"},{"runner":"ubuntu-latest","systems":"x86_64-linux","name":"linux"}]'
pr-url: ${{ inputs.pr-url || github.event.pull_request.html_url }}
21 changes: 21 additions & 0 deletions .github/workflows/flake-review-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Flake Review Comment

# Triggered when "Flake Review Build" finishes. Runs from master with a writable
# token so it can post comments even on fork PRs.

on:
workflow_run:
workflows: ["Flake Review Build"]
types: [completed]

permissions:
contents: read
pull-requests: write
actions: read

jobs:
comment:
# https://github.com/ojsef39/flake-review/blob/main/.github/workflows/flake-review-comment-reusable.yml
uses: ojsef39/flake-review/.github/workflows/flake-review-comment-reusable.yml@0.3.0
with:
flake-review-ref: "0.3.0"
23 changes: 0 additions & 23 deletions .github/workflows/flake-review.yml

This file was deleted.

5 changes: 3 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
{
"customType": "regex",
"managerFilePatterns": [
"/^\\.github/workflows/flake-review\\.yml$/"
"/^\\.github/workflows/flake-review-.*\\.yml$/"
],
"matchStrings": [
"flake-review-ref: \"(?<currentValue>[^\"]+)\""
"flake-review-ref: \"(?<currentValue>[^\"]+)\"",
"ojsef39/flake-review/[^@\\s]+@(?<currentValue>[^\\s]+)"
],
"depNameTemplate": "ojsef39/flake-review",
"datasourceTemplate": "github-tags"
Expand Down
Loading