|
|
@ -15,6 +15,10 @@ jobs: |
|
|
|
env: |
|
|
|
env: |
|
|
|
ARTIFACT_NAME: 'levitate' # The name of the artifact that we would like to download |
|
|
|
ARTIFACT_NAME: 'levitate' # The name of the artifact that we would like to download |
|
|
|
ARTIFACT_FOLDER: '${{ github.workspace }}/tmp' # The name of the folder where we will download the artifact to |
|
|
|
ARTIFACT_FOLDER: '${{ github.workspace }}/tmp' # The name of the folder where we will download the artifact to |
|
|
|
|
|
|
|
permissions: |
|
|
|
|
|
|
|
contents: read |
|
|
|
|
|
|
|
issues: write |
|
|
|
|
|
|
|
pull-requests: write |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
@ -119,7 +123,7 @@ jobs: |
|
|
|
# Posts a notification to Slack if a PR has a breaking change and it did not have a breaking change before |
|
|
|
# Posts a notification to Slack if a PR has a breaking change and it did not have a breaking change before |
|
|
|
- name: Post to Slack |
|
|
|
- name: Post to Slack |
|
|
|
id: slack |
|
|
|
id: slack |
|
|
|
if: steps.levitate-run.outputs.exit_code == 1 && steps.does-label-exist.outputs.result == 0 && steps.levitate-run.outputs.shouldSkip != 'true' |
|
|
|
if: steps.levitate-run.outputs.exit_code == 1 && steps.does-label-exist.outputs.result == 0 && steps.levitate-run.outputs.shouldSkip != 'true' && env.HAS_SECRETS |
|
|
|
uses: slackapi/slack-github-action@v1.24.0 |
|
|
|
uses: slackapi/slack-github-action@v1.24.0 |
|
|
|
with: |
|
|
|
with: |
|
|
|
payload: | |
|
|
|
payload: | |
|
|
@ -132,6 +136,7 @@ jobs: |
|
|
|
} |
|
|
|
} |
|
|
|
env: |
|
|
|
env: |
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_LEVITATE_WEBHOOK_URL }} |
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_LEVITATE_WEBHOOK_URL }} |
|
|
|
|
|
|
|
HAS_SECRETS: ${{ (github.repository == 'grafana/grafana' || secrets.SLACK_LEVITATE_WEBHOOK_URL != '') || '' }} |
|
|
|
|
|
|
|
|
|
|
|
# Add the label |
|
|
|
# Add the label |
|
|
|
- name: Add "levitate breaking change" label |
|
|
|
- name: Add "levitate breaking change" label |
|
|
|