Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/npm-gulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
strategy:
fail-fast: false
matrix:
node-version: [12.x, 14.x, 16.x]

Expand All @@ -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 }}
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ 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,
},
},
{
type: "context",
elements: [
{
text: `<@null> <@null> <@null> | *get-paid* | *null}* `,
text: `<@null> <@null> <@null> | *engineering blog* | *null}* `,
type: "mrkdwn",
},
],
Expand All @@ -28,7 +28,7 @@ gulp.task("createnotification", async () => {
type: "section",
text: {
type: "mrkdwn",
text: `*<https://bitbucket.org/payclick/get-paid/pull-requests>*`,
text: `*<https://github.com/clickpesa/engineering-blog/pulls>*`,
},
},
{
Expand Down Expand Up @@ -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`,
},
],
},
Expand All @@ -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"));
});
});
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}