bonitasoft / bonita-documentation-site

The sources of the Bonita Documentation site
https://documentation.bonitasoft.com/
GNU General Public License v2.0
9 stars 5 forks source link

The slack notification is no more received when the "Propagate documentation " workflow failed #563

Closed tbouffard closed 1 year ago

tbouffard commented 1 year ago

1st failing workflow without slack notification: 29th march

image

Logs on 2023-05-08 of https://github.com/bonitasoft/bonita-documentation-site/actions/runs/4910942473/jobs/8768540157

Details
0s
Run cd ./bonita-doc
########################################
Performing the doc propagation
########################################
> Propagating documentation upwards
> Configuration: NO_PUSH=false
> Configuration: REPO_NAME=bonita-doc
> Merging branch '2021.2' into '2022.1'
Switched to a new branch '2022.1'
branch '2022.1' set up to track 'origin/2022.1'.
Already up to date.
Auto-merging modules/ROOT/pages/bonita-data-repository-dependencies.adoc
Auto-merging modules/ROOT/pages/bonita-engine-dependencies.adoc
Auto-merging modules/ROOT/pages/bonita-ui-designer-dependencies.adoc
Auto-merging modules/ROOT/pages/bonita-web-dependencies.adoc
Auto-merging modules/ROOT/pages/portal-js-dependencies.adoc
Auto-merging modules/identity/pages/ldap-synchronizer.adoc
CONFLICT (content): Merge conflict in modules/identity/pages/ldap-synchronizer.adoc
Automatic merge failed; fix conflicts and then commit the result.
Error: Process completed with exit code 1.

Run bonitasoft/actions/packages/notify-slack@v2
  with:
    CHANNEL_ID: CCQGMR4ES
    MESSAGE: :fire:  Propagating documentation upwards failed for repository *bonita-doc*. \n \n  
  @channel *We need someone* ! \n  
  - Add a :fire_extinguisher:if you take the action to resolve the conflicts (only one person is required) \n 
  - Add a :sweat_drops: when it’s done (and eventually a :party_parrot: ) \n \n
  More details on solving the conflicts locally 

  env:
    SLACK_BOT_TOKEN: ***
Run slackapi/slack-github-action@v1.23.0
  with:
    channel-id: CCQGMR4ES
    payload: {
      "blocks": [
          {
              "type": "section",
              "text": {
                  "type": "mrkdwn",
                  "text": ":fire:  Propagating documentation upwards failed for repository *bonita-doc*. \\n \\n  \n@channel *We need someone* ! \\n  \n- Add a :fire_extinguisher:if you take the action to resolve the conflicts (only one person is required) \\n \n- Add a :sweat_drops: when it’s done (and eventually a :party_parrot: ) \\n \\n\nMore details on solving the conflicts locally \n"
              }
          },
          {
              "type": "divider"
          },
          {
              "type": "section",
              "text": {
                  "type": "mrkdwn",
                  "text": "More details "
              }
          }
      ]
  }

  env:
    SLACK_BOT_TOKEN
tbouffard commented 1 year ago

Occurred again on 2023-05-24, no notification

image

tbouffard commented 1 year ago

The issue may have been introduced when switching to the bonitasoft/actions in #518 We already fixed some message rendering problem in the message sent when the "push to production" failed in #561