Open martinburch opened 2 years ago
I thought since the id was check, changing the id to, say, lint, would allow changing
id
check
lint
if: steps.check.outputs.triggered == 'true' to if: steps.lint.outputs.triggered == 'true'
however, this didn't work, steps.lint.outputs.triggered == 'true' never cause the next step to run
- uses: khan/pull-request-comment-trigger@master id: lint with: trigger: '/lint' reaction: rocket env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - uses: yu-iskw/action-sqlfluff@v3 if: steps.lint.outputs.triggered == 'true'
when I changed back to check everything worked as expected. Why is this? Doesn't really conform with the documentation here: https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context which says you may access steps.<step_id>.outputs
steps.<step_id>.outputs
hmm yeah that's not what I would expect either. Looks like maybe a bug in the github actions runner? I certainly haven't hardcoded "check" anywhere.
I thought since the
id
wascheck
, changing theid
to, say,lint
, would allow changingif: steps.check.outputs.triggered == 'true' to if: steps.lint.outputs.triggered == 'true'
however, this didn't work, steps.lint.outputs.triggered == 'true' never cause the next step to run
when I changed back to
check
everything worked as expected. Why is this? Doesn't really conform with the documentation here: https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context which says you may accesssteps.<step_id>.outputs