Skip to content

Issue comment

Issue comment #15

Workflow file for this run

name: commands
run-name: Issue comment
on:
issue_comment:
types:
- created
- edited
jobs:
rebuild:
if: ${{ contains(github.event.comment.body, '/rebuild') }}
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-regex-match@v2
with:
text: ${{ github.event.comment.body }}
regex: '^/rebuild\s*([\w\.]+?)$'
id: regex
- uses: actions/checkout@v4
- uses: ./.github/actions/rebuild
with:
tag: ${{ steps.regex.outputs.group1 }}
- run: gh issue comment "${{ github.event.issue.number }}" --body "${{ steps.regex.outputs.group1 }} rebuild completed successfully"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}