diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 8f85ce7..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,6 +26,10 @@ jobs: node-version: ${{ matrix.node-version }} - name: Build - run: | - npm install - gulp --tasks + run: npm install + + - name: gulp + run: npm install -g gulp axios + + - name: notify + run: gulp createnotification --b ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/gulpfile.js b/gulpfile.js index 3c0c342..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`, }, ], }, @@ -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")); }); }); 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" } }