Skip to content

feat: copy ondemand.d files on startup to configure OOD #349

feat: copy ondemand.d files on startup to configure OOD

feat: copy ondemand.d files on startup to configure OOD #349

name: Slash Command Listener
on:
issue_comment:
types: [created]
jobs:
slash-command:
if: contains(github.event.comment.body, '/create_release')
runs-on: ubuntu-latest
steps:
- name: Check if user is authorized
uses: actions/github-script@v8
with:
script: |
const allowed = ['abujeda','whorka','doprdele'];
const user = context.payload.comment.user.login;
if (!allowed.includes(user)) {
core.setFailed(`❌ User ${user} is not allowed to run this command.`);
}
- uses: peter-evans/slash-command-dispatch@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-type: issue
event-type-suffix: _command
commands: |
create_release_candidate
create_release
permission: none