Skip to content

Commit

Permalink
workflow: comment on nixpkgs when starting
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew committed Dec 21, 2024
1 parent 5bb3088 commit a26aa6a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/nixpkgs-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,38 @@ on:
for:
type: string
description: "Who asked for this run"
default: "someone"
default: "not identified"

concurrency:
group: review-${{ github.event.inputs.pr }}
cancel-in-progress: true

jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
env:
MESSAGE: |
[nixpkgs-reviewd](${{github.server_url}}/${{ github.event.repository.name }}) workflow started
Extra args: `${{github.event.inputs.extra-args}}`
Free space: ${{github.event.inputs.free-space}}
x86_64-linux: ${{github.event.inputs.x86_64-linux}}
x86_64-darwin: ${{github.event.inputs.x86_64-darwin}}
aarch64-darwin: ${{github.event.inputs.aarch64-darwin}}
Who asked: ${{github.event.inputs.for}}
Status: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
PR: ${{ github.event.inputs.pr }}
with:
github-token: ${{secrets.GH_TOKEN_NIXPKGS_REVIEW}}
script: |
github.rest.issues.createComment({
issue_number: process.env.PR,
owner: 'NixOS',
repo: 'nixpkgs',
body: process.env.MESSAGE
})
build-x86_64-linux:
name: 'x86_64-linux'
if: ${{ github.event.inputs.x86_64-linux == 'true' }}
Expand Down

0 comments on commit a26aa6a

Please sign in to comment.