From 2feec9334f039d34d6a382e373bfc68811f60e16 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 19 Sep 2021 20:42:20 +0200 Subject: [PATCH] fix drone yaml format and switch to drone-matrix plugin (#5) --- .drone.jsonnet | 2 +- .drone.yml | 6 ++++-- .github/settings.yml | 9 --------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index d667bab..b53dcf8 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -168,7 +168,7 @@ local PipelineNotifications(deps=[],) = { settings: { homeserver: { from_secret: 'matrix_homeserver' }, roomid: { from_secret: 'matrix_roomid' }, - template: 'Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}', + template: 'Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}', username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, }, diff --git a/.drone.yml b/.drone.yml index d5cbbca..b0604f6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -144,7 +144,7 @@ steps: from_secret: matrix_password roomid: from_secret: matrix_roomid - template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}" + template: "Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}" username: from_secret: matrix_username when: @@ -165,4 +165,6 @@ depends_on: --- kind: signature -hmac: 42a2167ae9705a4a04a27f4b333263c30dab5921dac8eed61fee0636d4e1ed50 +hmac: 1ce4587c06e6c53cfb4ea79d2a645174eebde037849ac76ca5e1a6e6937bb9c0 + +... diff --git a/.github/settings.yml b/.github/settings.yml index 85e2941..51bedde 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -53,12 +53,3 @@ branches: - continuous-integration/drone/pr enforce_admins: null restrictions: null - - name: docs - protection: - required_pull_request_reviews: null - required_status_checks: null - enforce_admins: true - restrictions: - users: [] - teams: - - bot