Skip to content

Commit

Permalink
Further condition check for PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
AngMits committed Sep 29, 2023
1 parent bf1469f commit 18c104d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
echo "current_job_status=${{ job.status }}" >> $GITHUB_ENV
- name: Post to Slack about the result of the Pull Request
if: ( always() && github.event_name == 'pull_request' && github.event.action != 'closed' )
if: ( always() && github.event_name == 'pull_request' && !(github.event.action == 'closed' && github.event.pull_request.merged == true) )
uses: slackapi/[email protected]
with:
channel-id: 'C05P40DCGAK'
Expand Down

0 comments on commit 18c104d

Please sign in to comment.