File tree 2 files changed +38
-26
lines changed
2 files changed +38
-26
lines changed Original file line number Diff line number Diff line change @@ -56,24 +56,24 @@ jobs:
56
56
echo "string=${{ inputs.string || 'goodbye' }}" >> $GITHUB_OUTPUT
57
57
echo "optional=${{ inputs.optional }}" >> $GITHUB_OUTPUT
58
58
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 }}
69
69
70
- read_worker :
71
- needs : call_worker
72
- runs-on : ubuntu-latest
70
+ # read_worker:
71
+ # needs: call_worker
72
+ # runs-on: ubuntu-latest
73
73
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,34 @@ jobs:
20
20
notify_slack :
21
21
runs-on : ubuntu-latest
22
22
needs : [context]
23
- # Only notify slack on release events
24
23
if : ${{ needs.context.outputs.is_release_master || needs.context.outputs.is_release_tag }}
25
24
steps :
26
- - uses : actions/checkout@v4
27
25
- name : Notify Slack
28
- uses : ./ .github/actions/slack
26
+ uses : mozilla/addons/ .github/actions/slack@main
29
27
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' }}
28
+ event : ${{ github.event_name }}
29
+ conclusion : ${{ github.event.workflow_run.conclusion }}
30
+ emoji : ${{ env.conclusion == 'success' && ':white_check_mark:' || ':x:' }}
31
+
32
32
with :
33
33
slack_token : ${{ secrets.SLACK_TOKEN }}
34
34
method : chat.postMessage
35
35
payload : |
36
- channel: ${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}
36
+ channel: "${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}"
37
+ text: "${{ env.event }} completed with ${{ env.conclusion }}"
37
38
blocks:
38
39
- type: context
39
40
elements:
40
41
- type: mrkdwn
41
- text: ":github: *Workflow Run:* ${{ github.event.workflow_run.url }}"
42
+ text: "${{ env.emoji }} ${{ env.event }} completed with ${{ env.conclusion }}"
43
+ - type: mrkdwn
44
+ text: "*Actor:* ${{ github.actor }}"
45
+ - type: mrkdwn
46
+ text: "*Commit:* ${{ github.event.workflow_run.head_commit.id }}"
47
+ - type: mrkdwn
48
+ text: "[Rerun Workflow](${{ github.event.workflow_run.rerun_url }})"
49
+ - type: mrkdwn
50
+ text: "[View Workflow](${{ github.event.workflow.url }})"
51
+
52
+
53
+
You can’t perform that action at this time.
0 commit comments