Skip to content

Commit d3138e3

Browse files
authored
fix: misc fixes (#37)
1 parent d768826 commit d3138e3

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

.github/workflows/test.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node: [8, 10]
17+
node: [8, 10, 12, 14, 16, 18]
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
20+
21+
- name: Setup node
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ matrix.node }}
25+
2026
- uses: ./
2127
if: always()
2228
with:
23-
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
github-token: ${{ github.token }}
2430
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}

dist/main/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opsless/ms-teams-github-actions",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"private": true,
55
"description": "MS Teams Github Actions integration",
66
"main": "lib/main.js",

src/main.ts

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ const send = async () => {
110110
await sleep(5000)
111111
const token = core.getInput('github-token')
112112
const webhookUri = core.getInput('webhook-uri')
113+
if (!webhookUri) {
114+
throw new Error('Missing MS Teams webhook URI')
115+
}
113116
const o = github.getOctokit(token)
114117
const ctx = github.context
115118
const jobList = await o.actions.listJobsForWorkflowRun({

yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -2366,9 +2366,9 @@ flatted@^3.1.0:
23662366
integrity sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA==
23672367

23682368
follow-redirects@^1.10.0:
2369-
version "1.13.1"
2370-
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.1.tgz#5f69b813376cee4fd0474a3aba835df04ab763b7"
2371-
integrity sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==
2369+
version "1.14.8"
2370+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc"
2371+
integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==
23722372

23732373
for-in@^1.0.2:
23742374
version "1.0.2"
@@ -4004,9 +4004,9 @@ minimatch@^3.0.4:
40044004
brace-expansion "^1.1.7"
40054005

40064006
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
4007-
version "1.2.5"
4008-
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
4009-
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
4007+
version "1.2.6"
4008+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
4009+
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
40104010

40114011
mixin-deep@^1.2.0:
40124012
version "1.3.2"
@@ -5185,9 +5185,9 @@ throat@^5.0.0:
51855185
integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==
51865186

51875187
5188-
version "1.0.4"
5189-
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
5190-
integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=
5188+
version "1.0.5"
5189+
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
5190+
integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==
51915191

51925192
to-fast-properties@^2.0.0:
51935193
version "2.0.0"

0 commit comments

Comments
 (0)