Skip to content

Running build tasks on a PR "on-demand" #25854

Answered by oldskool
fernap3 asked this question in Actions
Discussion options

You must be logged in to vote

The issue_comment event type seems to be what you’re looking for.

on:
  issue_comment:
    types: [created]

jobs:
foo:
runs-on: ubuntu-latest

steps:
- name: run-something
if: github.event.issue.comment.body == "Github, OK to test"
run: <do your stuff here>

Also see my answer in this thread. You seem to be looking for the same thing.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants