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.yml35
1 files changed, 12 insertions, 23 deletions
diff --git a/.github/workflows/dashboard-pr.yml b/.github/workflows/dashboard-pr.yml
index 8f5a40f2b..711cf1e1f 100644
--- a/.github/workflows/dashboard-pr.yml
+++ b/.github/workflows/dashboard-pr.yml
@@ -8,9 +8,12 @@ on:
dashboard_version:
# This must be specified, and must _exactly_ match the version
# tag for the release to be used for the update.
- name: Dashboard Version
+ description: Dashboard Version
required: true
+env:
+ DO_NOT_TRACK: 1
+
jobs:
dashboard-pr:
name: Generate Dashboard Version Bump PR
@@ -18,30 +21,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- - name: Create Branch
- # This is needed because we want to do a PR, and the commit
- # action used below requires the branch it is commiting to to
- # already exist.
- run: |
- git checkout -b dashboard-${{ github.event.inputs.dashboard_version }}
- git push -u origin dashboard-${{ github.event.inputs.dashboard_version }}
- name: Update Files
run: |
web/gui/bundle_dashboard.py ${{ github.event.inputs.dashboard_version }}
- - name: Commit Changes
- uses: swinton/commit@v2.x
- env:
- GH_TOKEN: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
with:
- files: |
- packaging/dashboard.version
- packaging/dashboard.checksums
+ 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.'
+ branch: dashboard-${{ github.event.inputs.dashboard_version }}
+ branch-suffix: timestamp
+ delete-branch: true
commit-message: 'Update dashboard to version ${{ github.event.inputs.dashboard_version }}.'
- ref: refs/heads/dashboard-${{ github.event.inputs.dashboard_version }}
- - name: Create PR
- uses: repo-sync/pull-request@v2
- with:
- source_branch: dashboard-${{ github.event.inputs.dashboard_version }}
- pr_title: 'Update dashboard to version ${{ github.event.inputs.dashboard_version }}.'
- pr_body: 'See https://github.com/netdata/dashboard/releases/tag/${{ github.event.inputs.dashboard_version }} for changes.'
- github_token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
+ token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}