github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/bitbucket/yaml/testdata/steps/example8.yaml.golden (about)

     1  {
     2      "pipelines": {
     3          "default": [
     4              {
     5                  "stage": {
     6                      "name": "Build and test",
     7                      "steps": [
     8                          {
     9                              "step": {
    10                                  "name": "Build app",
    11                                  "script": [
    12                                      "sh ./build-app.sh"
    13                                  ]
    14                              }
    15                          },
    16                          {
    17                              "step": {
    18                                  "name": "Run unit tests",
    19                                  "script": [
    20                                      "sh ./run-tests.sh"
    21                                  ]
    22                              }
    23                          }
    24                      ]
    25                  }
    26              },
    27              {
    28                  "step": {
    29                      "script": [
    30                          {
    31                              "pipe": "atlassian/slack-notify:latest",
    32                              "name": "Send a message to Slack",
    33                              "variables": {
    34                                  "WEBHOOK_URL": "$SLACK_WEBHOOK",
    35                                  "PRETEXT": "Hello, Slack!",
    36                                  "MESSAGE": "Hello, Slack!!"
    37                              }
    38                          }
    39                      ]
    40                  }
    41              }
    42          ]
    43      }
    44  }