Skip to content

Commit fe43e79

Browse files
committed
more
1 parent 2c85a66 commit fe43e79

File tree

2 files changed

+38
-24
lines changed

2 files changed

+38
-24
lines changed

.github/workflows/default.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/default_completed.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,33 @@ jobs:
2323
# Only notify slack on release events
2424
if: ${{ needs.context.outputs.is_release_master || needs.context.outputs.is_release_tag }}
2525
steps:
26-
- uses: actions/checkout@v4
2726
- name: Notify Slack
28-
uses: ./.github/actions/slack
27+
uses: mozilla/addons/.github/actions/slack@main
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+
is_release_master: ${{ needs.context.outputs.is_release_master }}
30+
retry: '[Rerun Workflow](${{ github.event.workflow_run.rerun_url }})'
31+
event: ${{ env.is_release_master && 'Release Master' || 'Release Tag' }}
32+
conclusion: ${{ github.event.workflow_run.conclusion }}
33+
conclusion_emoji: ${{ env.conclusion == 'success' && ':white_check_mark:' || ':x:' }}
34+
text: "${{ env.conclusion_emoji }} ${{ env.event }} completed with ${{env.conclusion }}"
35+
3236
with:
3337
slack_token: ${{ secrets.SLACK_TOKEN }}
3438
method: chat.postMessage
3539
payload: |
3640
channel: ${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}
41+
text: ${{ env.text }}
3742
blocks:
3843
- type: context
3944
elements:
4045
- type: mrkdwn
41-
text: ":github: *Workflow Run:* ${{ github.event.workflow_run.url }}"
46+
text: ${{ env.text }}
47+
- type: mrkdwn
48+
text: ":github: *Workflow Run:* [${{ github.event.workflow_run.id }}](${{ github.event.workflow_run.url }})"
49+
- type: mrkdwn
50+
text: ":bust_in_silhouette: *Triggered by:* @${{ github.actor }}"
51+
# - type: section
52+
# text:
53+
# type: mrkdwn
54+
# text: ${{ github.event.workflow_run.conclusion == 'failure' && env.retry || '' }}
55+

0 commit comments

Comments
 (0)