feat: copy ondemand.d files on startup to configure OOD #349
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: 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 |