Skip to content

Commit daaf192

Browse files
committed
more
1 parent 2c85a66 commit daaf192

File tree

2 files changed

+38
-26
lines changed

2 files changed

+38
-26
lines changed

Diff for: .github/workflows/default.yml

+19-19
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

Diff for: .github/workflows/default_completed.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,34 @@ 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
2927
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+
3232
with:
3333
slack_token: ${{ secrets.SLACK_TOKEN }}
3434
method: chat.postMessage
3535
payload: |
36-
channel: ${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}
36+
channel: "${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}"
37+
text: "${{ env.event }} completed with ${{ env.conclusion }}"
3738
blocks:
3839
- type: context
3940
elements:
4041
- 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+

0 commit comments

Comments
 (0)