Skip to content

Commit

Permalink
[GHA] on pull request get /build spec from commit message
Browse files Browse the repository at this point in the history
Signed-off-by: kuvaldini <ivan@kuvaldini.pro>
  • Loading branch information
kuvaldini committed Jul 21, 2021
1 parent af3182e commit 45ad048
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/iroha1.inc.yml
Expand Up @@ -129,7 +129,7 @@ jobs: &jobs
END
echo "::endgroup::"
- *step_checkout
# - *step_detect_commented_pr
# - *step_detect_commented_pr ##TODO move up one line
-
name: Chat-ops reacts only to PRs with special base branches
if: github.event.comment
Expand All @@ -154,7 +154,11 @@ jobs: &jobs
if: ${{ steps.comment_body.outcome == 'skipped' }}
run: |
case ${{github.event_name}} in
pull_request) echo >/tmp/comment_body "/build debug" ;;
pull_request)
if git log -1 --format=%B | grep '^/build ' >/tmp/comment_body ;then
else
echo >/tmp/comment_body "/build debug" ;;
fi
push) echo >/tmp/comment_body "/build ubuntu debug release"$'\n' "/build macos debug" ;; ##TODO windows
schedule) echo >/tmp/comment_body "/build all" ;;
workflow_dispatch) echo >/tmp/comment_body "${{github.event.inputs.build_spec}}" ;;
Expand Down

0 comments on commit 45ad048

Please sign in to comment.