From c70fe0c64a49d56fed72abb5f852d32a82665fc4 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:38:51 +0300 Subject: [PATCH 1/9] test commit --- .github/workflows/npm-gulp.yml | 3 +++ gulpfile.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 8f85ce7..4f72876 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -27,4 +27,7 @@ jobs: - name: Build run: | npm install + npm install -g gulp + npm install axios gulp --tasks + gulp createnotification --b ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/gulpfile.js b/gulpfile.js index 3c0c342..aebcf90 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task("createnotification", async () => { resolve(response.data); }) .catch((error) => { - console.log("FAILED: Send slack webhook: \n", error); + console.log("FAILED: Send slack webhook", error); reject(new Error("FAILED: Send slack webhook")); }); }); From 683140283b62a72f27fc053ba126bb2eb282a666 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:42:02 +0300 Subject: [PATCH 2/9] test commit --- .github/workflows/npm-gulp.yml | 7 +++++-- gulpfile.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 4f72876..e076a8e 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -27,7 +27,10 @@ jobs: - name: Build run: | npm install - npm install -g gulp - npm install axios + + - name: gulp + npm install -g gulp axios + + - name: notify gulp --tasks gulp createnotification --b ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/gulpfile.js b/gulpfile.js index aebcf90..3c0c342 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task("createnotification", async () => { resolve(response.data); }) .catch((error) => { - console.log("FAILED: Send slack webhook", error); + console.log("FAILED: Send slack webhook: \n", error); reject(new Error("FAILED: Send slack webhook")); }); }); From 9b2a7d663bb2a2f1b3ad21a930819ea441dcda85 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:43:05 +0300 Subject: [PATCH 3/9] test commit --- .github/workflows/npm-gulp.yml | 4 +++- gulpfile.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index e076a8e..70b41ae 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -29,8 +29,10 @@ jobs: npm install - name: gulp + run: | npm install -g gulp axios - + - name: notify + run: | gulp --tasks gulp createnotification --b ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/gulpfile.js b/gulpfile.js index 3c0c342..aebcf90 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task("createnotification", async () => { resolve(response.data); }) .catch((error) => { - console.log("FAILED: Send slack webhook: \n", error); + console.log("FAILED: Send slack webhook", error); reject(new Error("FAILED: Send slack webhook")); }); }); From 3a991ec2c0f5a1b7fd71142a35501cbd659047c7 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:44:12 +0300 Subject: [PATCH 4/9] test commit --- .github/workflows/npm-gulp.yml | 1 + gulpfile.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 70b41ae..1c82df0 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -27,6 +27,7 @@ jobs: - name: Build run: | npm install + npm audit - name: gulp run: | diff --git a/gulpfile.js b/gulpfile.js index aebcf90..3c0c342 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task("createnotification", async () => { resolve(response.data); }) .catch((error) => { - console.log("FAILED: Send slack webhook", error); + console.log("FAILED: Send slack webhook: \n", error); reject(new Error("FAILED: Send slack webhook")); }); }); From 0acaa3db538ed8efd1e7e61f9f069a1a8f5ddfd3 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:45:51 +0300 Subject: [PATCH 5/9] test commit --- .github/workflows/npm-gulp.yml | 2 +- gulpfile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 1c82df0..ba9576c 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -27,7 +27,7 @@ jobs: - name: Build run: | npm install - npm audit + npm audit fix --force - name: gulp run: | diff --git a/gulpfile.js b/gulpfile.js index 3c0c342..aebcf90 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task("createnotification", async () => { resolve(response.data); }) .catch((error) => { - console.log("FAILED: Send slack webhook: \n", error); + console.log("FAILED: Send slack webhook", error); reject(new Error("FAILED: Send slack webhook")); }); }); From 70c834be64523ab1d4f64dd92a35b59166f3ea99 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:47:47 +0300 Subject: [PATCH 6/9] test commit --- .github/workflows/npm-gulp.yml | 1 - package.json | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index ba9576c..70b41ae 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -27,7 +27,6 @@ jobs: - name: Build run: | npm install - npm audit fix --force - name: gulp run: | diff --git a/package.json b/package.json index b95b147..9b91119 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,6 @@ "homepage": "https://github.com/bmsteven/demo#readme", "dependencies": { "axios": "^0.26.1", - "gulp": "^4.0.2", - "gulp-append-prepend": "^1.0.9", - "gulp-json-modify": "^1.0.2", - "gulp4-run-sequence": "^1.0.1" + "gulp": "^4.0.2" } } From 2b01de9e78dde306fd3b058c35ce72f676b497d2 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:49:35 +0300 Subject: [PATCH 7/9] test commit --- .github/workflows/npm-gulp.yml | 1 - gulpfile.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 70b41ae..25f2017 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -34,5 +34,4 @@ jobs: - name: notify run: | - gulp --tasks gulp createnotification --b ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/gulpfile.js b/gulpfile.js index aebcf90..3c0c342 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task("createnotification", async () => { resolve(response.data); }) .catch((error) => { - console.log("FAILED: Send slack webhook", error); + console.log("FAILED: Send slack webhook: \n", error); reject(new Error("FAILED: Send slack webhook")); }); }); From f3d59dbaff98ee12936ee4cfde3d12aa09858af7 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:56:04 +0300 Subject: [PATCH 8/9] test commit --- .github/workflows/npm-gulp.yml | 12 +++++------- gulpfile.js | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 25f2017..aa23b8e 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -12,7 +12,8 @@ jobs: build: runs-on: ubuntu-latest - strategy: + strategy: + fail-fast: false matrix: node-version: [12.x, 14.x, 16.x] @@ -25,13 +26,10 @@ jobs: node-version: ${{ matrix.node-version }} - name: Build - run: | - npm install + run: npm install - name: gulp - run: | - npm install -g gulp axios + run: npm install -g gulp axios - name: notify - run: | - gulp createnotification --b ${{ secrets.SLACK_WEBHOOK_URL }} + run: gulp createnotification --b ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/gulpfile.js b/gulpfile.js index 3c0c342..aebcf90 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task("createnotification", async () => { resolve(response.data); }) .catch((error) => { - console.log("FAILED: Send slack webhook: \n", error); + console.log("FAILED: Send slack webhook", error); reject(new Error("FAILED: Send slack webhook")); }); }); From fe54649f666797fd086d0b7629b7208eb8fcf7ab Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Apr 2022 01:59:12 +0300 Subject: [PATCH 9/9] test commit --- gulpfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index aebcf90..4033aea 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -8,7 +8,7 @@ gulp.task("createnotification", async () => { type: "header", text: { type: "plain_text", - text: ":sparkles: New pull request for manual review on github actions", + text: ":sparkles: New notification sent via github actions", emoji: true, }, }, @@ -16,7 +16,7 @@ gulp.task("createnotification", async () => { type: "context", elements: [ { - text: `<@null> <@null> <@null> | *get-paid* | *null}* `, + text: `<@null> <@null> <@null> | *engineering blog* | *null}* `, type: "mrkdwn", }, ], @@ -28,7 +28,7 @@ gulp.task("createnotification", async () => { type: "section", text: { type: "mrkdwn", - text: `**`, + text: `**`, }, }, { @@ -58,7 +58,7 @@ gulp.task("createnotification", async () => { emoji: true, text: "View Pull Request", }, - url: `https://bitbucket.org/payclick/get-paid/pull-requests`, + url: `https://github.com/clickpesa/engineering-blog/pulls`, }, ], },