Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub Action Condition #9

Closed
sprankhub opened this issue Oct 25, 2022 · 1 comment · Fixed by #10
Closed

Fix GitHub Action Condition #9

sprankhub opened this issue Oct 25, 2022 · 1 comment · Fixed by #10

Comments

@sprankhub
Copy link
Contributor

As can be seen here, the current condition on the GitHub Action "Terraform plan" does not work:

if: >
${{
github.event.issue.pull_request &&
github.event.comment.body == '/plan' &&
(
github.event.comment.user.login == 'Vinai' ||
github.event.comment.user.login == 'sprankhub'
)
}}

The action was executed on an issue comment, even though we only want to execute it on pull request comments with a certain text from certain authors. I checked the condition and it pretty much seems to use the same condition as shown in the docs.

@sprankhub
Copy link
Contributor Author

This is a test comment to see if the fix actually works :)

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

Successfully merging a pull request may close this issue.

1 participant