summaryrefslogtreecommitdiffstats
path: root/.github/workflows/dashboard-pr.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/dashboard-pr.yml')
-rw-r--r--.github/workflows/dashboard-pr.yml24
1 files changed, 21 insertions, 3 deletions
diff --git a/.github/workflows/dashboard-pr.yml b/.github/workflows/dashboard-pr.yml
index 711cf1e1f..c99f98919 100644
--- a/.github/workflows/dashboard-pr.yml
+++ b/.github/workflows/dashboard-pr.yml
@@ -12,7 +12,7 @@ on:
required: true
env:
- DO_NOT_TRACK: 1
+ DISABLE_TELEMETRY: 1
jobs:
dashboard-pr:
@@ -20,12 +20,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
+ id: checkout
+ uses: actions/checkout@v3
- name: Update Files
+ id: update
run: |
web/gui/bundle_dashboard.py ${{ github.event.inputs.dashboard_version }}
- name: Create Pull Request
- uses: peter-evans/create-pull-request@v3
+ id: pr
+ uses: peter-evans/create-pull-request@v4
with:
title: 'Update dashboard to version ${{ github.event.inputs.dashboard_version }}.'
body: 'See https://github.com/netdata/dashboard/releases/tag/${{ github.event.inputs.dashboard_version }} for changes.'
@@ -34,3 +37,18 @@ jobs:
delete-branch: true
commit-message: 'Update dashboard to version ${{ github.event.inputs.dashboard_version }}.'
token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
+ - name: Failure Notification
+ uses: rtCamp/action-slack-notify@v2
+ env:
+ SLACK_COLOR: 'danger'
+ SLACK_FOOTER: ''
+ SLACK_ICON_EMOJI: ':github-actions:'
+ SLACK_TITLE: 'Dashboard update PR creation failed:'
+ SLACK_USERNAME: 'GitHub Actions'
+ SLACK_MESSAGE: |-
+ ${{ github.repository }}: Failed to create PR to update dashboard code to newest release.
+ Checkout: ${{ steps.checkout.outcome }}
+ Update files: ${{ steps.update.outcome }}
+ Create PR: ${{ steps.pr.outcome }}
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
+ if: failure()