File tree Expand file tree Collapse file tree 2 files changed +56
-29
lines changed
Expand file tree Collapse file tree 2 files changed +56
-29
lines changed Original file line number Diff line number Diff line change @@ -56,24 +56,24 @@ jobs:
5656 echo "string=${{ inputs.string || 'goodbye' }}" >> $GITHUB_OUTPUT
5757 echo "optional=${{ inputs.optional }}" >> $GITHUB_OUTPUT
5858
59- call_worker :
60- needs : context
61- uses : ./.github/workflows/worker.yml
62- secrets :
63- token : ${{ github.token }}
64- with :
65- boolean : ${{ fromJson(needs.context.outputs.boolean) }}
66- number : ${{ fromJson(needs.context.outputs.number) }}
67- string : ${{ needs.context.outputs.string }}
68- optional : ${{ needs.context.outputs.optional }}
59+ # call_worker:
60+ # needs: context
61+ # uses: ./.github/workflows/worker.yml
62+ # secrets:
63+ # token: ${{ github.token }}
64+ # with:
65+ # boolean: ${{ fromJson(needs.context.outputs.boolean) }}
66+ # number: ${{ fromJson(needs.context.outputs.number) }}
67+ # string: ${{ needs.context.outputs.string }}
68+ # optional: ${{ needs.context.outputs.optional }}
6969
70- read_worker :
71- needs : call_worker
72- runs-on : ubuntu-latest
70+ # read_worker:
71+ # needs: call_worker
72+ # runs-on: ubuntu-latest
7373
74- steps :
75- - shell : bash
76- run : |
77- cat <<EOF
78- ${{ toJson(needs.call_worker) }}
79- EOF
74+ # steps:
75+ # - shell: bash
76+ # run: |
77+ # cat <<EOF
78+ # ${{ toJson(needs.call_worker) }}
79+ # EOF
Original file line number Diff line number Diff line change @@ -20,22 +20,49 @@ jobs:
2020 notify_slack :
2121 runs-on : ubuntu-latest
2222 needs : [context]
23- # Only notify slack on release events
2423 if : ${{ needs.context.outputs.is_release_master || needs.context.outputs.is_release_tag }}
2524 steps :
26- - uses : actions/checkout@v4
2725 - name : Notify Slack
28- uses : ./.github/actions/slack
26+ uses : mozilla/addons/.github/actions/slack@main
27+
2928 env :
30- retry_text : ' [Rerun Workflow](${{ github.event.workflow_run.rerun_url }})'
31- event_text : ${{ needs.context.outputs.is_release_master && 'Release Master' || 'Release Tag' }}
29+ event : ${{ github.event_name }}
30+ conclusion : ${{ github.event.workflow_run.conclusion }}
31+ emoji : ${{ github.event.workflow_run.conclusion == 'success' && ':white_check_mark:' || ':x:' }}
32+
3233 with :
3334 slack_token : ${{ secrets.SLACK_TOKEN }}
3435 method : chat.postMessage
3536 payload : |
36- channel: ${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}
37+ channel: "${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}"
38+ text: "${{ env.event }} completed with ${{ env.conclusion }}"
3739 blocks:
38- - type: context
39- elements:
40- - type: mrkdwn
41- text: ":github: *Workflow Run:* ${{ github.event.workflow_run.url }}"
40+ - type: section
41+ text:
42+ type: mrkdwn
43+ text: "*Event* ${{ env.emoji }} '${{ env.event }}' completed with ${{ env.conclusion }}"
44+ accessory:
45+ type: button
46+ text:
47+ type: plain_text
48+ text: "View Workflow"
49+ url: ${{ github.event.workflow.url }}
50+ # - type: section
51+ # text:
52+ # type: mrkdwn
53+ # text: "*Actor:* ${{ github.actor }}"
54+ # - type: section
55+ # text:
56+ # type: mrkdwn
57+ # text: "*Commit:* ${{ github.event.workflow_run.head_commit.id }}"
58+ # - type: section
59+ # text:
60+ # type: mrkdwn
61+ # text: "[Rerun Workflow](${{ github.event.workflow_run.rerun_url }})"
62+ # - type: section
63+ # text:
64+ # type: mrkdwn
65+ # text: "[View Workflow](${{ github.event.workflow.url }})"
66+
67+
68+
You can’t perform that action at this time.
0 commit comments