Skip to content

Commit

Permalink
Run if statement before action steps
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDogeBro committed Sep 22, 2021
1 parent faa2c6b commit a8501ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/issue-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:

jobs:
automate-issue-done:
if: ${{ github.event.sender.login == 'DogeBroFlow' &&
github.event.issue.state == 'closed' &&
github.event.issue.milestone.state == 'closed' &&
github.event.comment.body == format( 'This functionality has been released in v{0}.', github.event.issue.milestone.title ) }}
runs-on: ubuntu-latest
steps:
- uses: alex-page/github-project-automation-plus@v0.8.1
if: ${{ github.event.sender.login == 'DogeBroFlow' &&
github.event.issue.state == 'closed' &&
github.event.issue.milestone.state == 'closed' &&
github.event.comment.body == format( 'This functionality has been released in v{0}.', github.event.issue.milestone.title ) }}
with:
project: Main
column: Done
Expand Down

0 comments on commit a8501ee

Please sign in to comment.