Add https://search.fau.rest #232
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Welcome message | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| replycomment: | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| steps: | |
| - uses: actions/checkout@v3 | |
| if: contains(github.event.issue.labels.*.name, 'instance add') | |
| - uses: actions/setup-node@v3 | |
| if: contains(github.event.issue.labels.*.name, 'instance add') | |
| with: | |
| node-version: 16 | |
| - uses: actions/github-script@v6 | |
| if: contains(github.event.issue.labels.*.name, 'instance add') | |
| with: | |
| script: | | |
| var replyComment = | |
| ['Please consider joining our Matrix room for public instance maintainers by joining our Matrix room: https://matrix.to/#/#searxng:matrix.org', | |
| 'then pinging @ return42, @ bnyro and @ mrpaulblack for asking to be invited to the Matrix room.', | |
| 'We discuss troubles managing a public instance, sharing some advices (like how to protect against bots), announcing big changes in searxng and more.' | |
| ].join('\n'); | |
| await github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: replyComment | |
| }) |