diff --git a/.github/workflows/nixpkgs-review.yml b/.github/workflows/nixpkgs-review.yml index 823d3dd..d425619 100644 --- a/.github/workflows/nixpkgs-review.yml +++ b/.github/workflows/nixpkgs-review.yml @@ -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' }}