Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

does this trigger "later in life"? #15

Open
krtschmr opened this issue Jun 1, 2021 · 1 comment
Open

does this trigger "later in life"? #15

krtschmr opened this issue Jun 1, 2021 · 1 comment

Comments

@krtschmr
Copy link

krtschmr commented Jun 1, 2021

we have a PR and when the tester comments "start_testing!" we want to spin up a test environment for this branch.
i had the idea that we just need to listen for comments in PRs and your action would be sufficient, but nothing here gets triggered.

am i right with the assumption, that our usecase won't work?

name: Starting a test environment
on:
  pull_request:
    types: [opened]
  issue_comment:
    types: [created]

jobs:
  spinup:
    runs-on: ubuntu-latest
    steps:
      - uses: khan/pull-request-comment-trigger@master
        id: check
        with:
          trigger: 'start_testing!'
      - run: 'sh deploy.sh #here we can run the pipeline to spin up an environment'
        if: steps.check.outputs.triggered == 'true'


@BhumikaSaini
Copy link

Hi @krtschmr,
I believe you missed passing the GITHUB_TOKEN. Please can you try updating your step as per below:

      - uses: khan/pull-request-comment-trigger@master
        id: check
        with:
          trigger: 'start_testing!'
        env:
          GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants