Skip to content

Commit

Permalink
Add publish flag to rebuild command
Browse files Browse the repository at this point in the history
  • Loading branch information
dhelonious committed Jun 7, 2024
1 parent 5f50367 commit 384536f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ jobs:
- uses: actions-ecosystem/action-regex-match@v2
with:
text: ${{ github.event.comment.body }}
regex: '^/rebuild\s*([\w\.]+?)$'
regex: '^/rebuild(\+[a-z]*)?\s*([\w\.]+)$'
id: regex
- uses: actions/checkout@v4
- uses: ./.github/actions/rebuild
with:
tag: ${{ steps.regex.outputs.group1 }}
tag: ${{ steps.regex.outputs.group2 }}
publish: ${{ steps.regex.outputs.group1 == '+publish' }}
release: latest/stable
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
- run: gh issue comment "${{ github.event.issue.number }}" --body "${{ steps.regex.outputs.group1 }} rebuild completed successfully"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 384536f

Please sign in to comment.