Skip to content

Commit 03b41e4

Browse files
authored
Fix 2 for publish.yml (#189)
Signed-off-by: Glenn Jocher <[email protected]>
1 parent 6fa9a2d commit 03b41e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165

166166
notify:
167167
needs: [check, release, testflight]
168-
if: always()
168+
if: always() && github.actor != 'dependabot[bot]'
169169
runs-on: ubuntu-latest
170170
permissions:
171171
contents: read
@@ -188,15 +188,15 @@ jobs:
188188
echo "PR_NUMBER=${PR_NUMBER}" >> "${GITHUB_ENV}"
189189
echo "PR_TITLE=${PR_TITLE}" >> "${GITHUB_ENV}"
190190
- name: Notify Success
191-
if: secrets.SLACK_WEBHOOK_URL_HUBWEB != '' && ((needs.release.result == 'success' && github.event_name == 'push') || (needs.testflight.result == 'success' && github.event_name == 'pull_request'))
191+
if: (needs.release.result == 'success' && github.event_name == 'push') || (needs.testflight.result == 'success' && github.event_name == 'pull_request')
192192
uses: slackapi/[email protected]
193193
with:
194194
webhook-type: incoming-webhook
195195
webhook: ${{ secrets.SLACK_WEBHOOK_URL_HUBWEB }}
196196
payload: |
197197
text: "<!channel> GitHub Actions success for ${{ github.workflow }} ✅\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* ${{ github.event_name == 'push' && format('NEW `YOLO iOS {0}` release published 🎉', needs.check.outputs.current_tag) || 'TestFlight build triggered for PR 🚀' }}\n*Job Status:* ${{ job.status }}\n*Pull Request:* <https://github.com/${{ github.repository }}/pull/${{ env.PR_NUMBER }}> ${{ env.PR_TITLE }}\n${{ github.event_name == 'push' && format('*Release Notes:* https://github.com/{0}/releases/tag/{1}', github.repository, needs.check.outputs.current_tag) || '' }}\n"
198198
- name: Notify Failure
199-
if: secrets.SLACK_WEBHOOK_URL_HUBWEB != '' && ((needs.release.result != 'success' && github.event_name == 'push') || (needs.testflight.result != 'success' && github.event_name == 'pull_request'))
199+
if: (needs.release.result != 'success' && github.event_name == 'push') || (needs.testflight.result != 'success' && github.event_name == 'pull_request')
200200
uses: slackapi/[email protected]
201201
with:
202202
webhook-type: incoming-webhook

0 commit comments

Comments
 (0)