Skip to content

Commit f3f7b44

Browse files
Merge pull request #455 from FDMediagroep/added-teams-webhook
Added teams webhook
2 parents f7e2a1f + 827f114 commit f3f7b44

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ jobs:
2626
run: |
2727
echo $RELEASE_VERSION
2828
echo ${{ env.RELEASE_VERSION }}
29+
- name: Set Timezone
30+
uses: szenius/[email protected]
31+
with:
32+
timezoneLinux: "Europe/Amsterdam"
33+
timezoneMacos: "Europe/Amsterdam"
34+
timezoneWindows: "Europe/Amsterdam"
35+
- name: Get current date
36+
id: date
37+
run: echo "CURRENT_DATETIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
38+
- name: Microsoft Teams
39+
uses: aliencube/[email protected]
40+
with:
41+
webhook_uri: ${{secrets.TEAMS_WEBHOOK}}
42+
title: New release - ReSubstitute ${{ env.RELEASE_VERSION }}
43+
summary: New release ReSubstitute ${{ env.RELEASE_VERSION }} from commit ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
44+
theme_color: 'e632ad'
45+
sections: '[{ "activityTitle": "ReSubstitute", "facts": [ {"name": "When", "value": "${{ env.CURRENT_DATETIME }}" }, { "name": "Triggered by:", "value": "${{ github.actor }}" }, { "name": "Repository:", "value": "${{ github.repository }}" }, { "name": "Version:", "value": "${{ env.RELEASE_VERSION }}" } ] }]'
46+
actions: '[{ "@type": "OpenUri", "name": "View job", "targets": [{ "os": "default", "uri": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }] }, { "@type": "OpenUri", "name": "Changelog", "targets": [{ "os": "default", "uri": "${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ env.RELEASE_VERSION }}" }] }, { "@type": "OpenUri", "name": "Commit", "targets": [{ "os": "default", "uri": "${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}" }] }, { "@type": "OpenUri", "name": "GitHub", "targets": [{ "os": "default", "uri": "${{ github.server_url }}/${{ github.repository }}" }] }]'
2947
- name: Use Node.js (NPMJS) ${{ matrix.node-version }}
3048
uses: actions/setup-node@v2
3149
with:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fdmg/resubstitute",
3-
"version": "0.1.21",
3+
"version": "0.1.25",
44
"description": "Pub/Sub drop-in replacement for Microsoft/ReSub",
55
"types": "ReSubstitute.d.ts",
66
"main": "ReSubstitute.js",

0 commit comments

Comments
 (0)