Skip to content

Commit

Permalink
Condition clarification and minor cleanup (#125)
Browse files Browse the repository at this point in the history
* Condition clarification and minor cleanup
* Further condition check for PR merge
  • Loading branch information
AngMits authored Sep 29, 2023
1 parent 4b67406 commit 0d1e561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .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' }} )
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 All @@ -79,7 +79,7 @@ jobs:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_WORKABLE_APP_OAUTH_TOKEN }}
- name: Post to Slack about the result of the push
if: ( always() && ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) )
if: ( always() && github.event_name == 'push' && github.ref == 'refs/heads/main' )
id: slack
uses: slackapi/[email protected]
with:
Expand Down

0 comments on commit 0d1e561

Please sign in to comment.