0f2f886044
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/8e8c483db84b4bee98b60c0593521ed34d9990e8...de0fac2e4500dabe0009e67214ff5f5447ce83dd) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
55 lines
1.8 KiB
YAML
55 lines
1.8 KiB
YAML
name: Comment
|
|
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
# This is used as fallback without app only.
|
|
# This happens when testing in forks without setting up that app.
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
# The `bot` workflow reacts to comments with @NixOS/nixpkgs-merge-bot references, but might only
|
|
# pick up a comment after up to 10 minutes. To give the user instant feedback, this job adds
|
|
# a reaction to these comments.
|
|
react:
|
|
name: React with eyes
|
|
runs-on: ubuntu-slim
|
|
timeout-minutes: 2
|
|
if: contains(github.event.comment.body, '@NixOS/nixpkgs-merge-bot merge')
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
sparse-checkout: |
|
|
ci/github-script
|
|
|
|
# Use the GitHub App to make sure the reaction happens with the same user who will later merge.
|
|
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
|
if: github.event_name != 'pull_request' && vars.NIXPKGS_CI_APP_ID
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ vars.NIXPKGS_CI_APP_ID }}
|
|
private-key: ${{ secrets.NIXPKGS_CI_APP_PRIVATE_KEY }}
|
|
permission-pull-requests: write
|
|
|
|
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
with:
|
|
github-token: ${{ steps.app-token.outputs.token || github.token }}
|
|
retries: 3
|
|
script: |
|
|
const { handleMergeComment } = require('./ci/github-script/merge.js')
|
|
const { body, node_id } = context.payload.comment
|
|
|
|
await handleMergeComment({
|
|
github,
|
|
body,
|
|
node_id,
|
|
reaction: 'EYES',
|
|
})
|