Skip to content

Commit

Permalink
Added teams webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
willemliufdmg committed Feb 8, 2024
1 parent 43de705 commit 827f114
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ jobs:
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Amsterdam"
timezoneMacos: "Europe/Amsterdam"
timezoneWindows: "Europe/Amsterdam"
- name: Get current date
id: date
run: echo "CURRENT_DATETIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Microsoft Teams
uses: aliencube/[email protected]
with:
webhook_uri: ${{secrets.TEAMS_WEBHOOK}}
title: New release - ReSubstitute ${{ env.RELEASE_VERSION }}
summary: New release ReSubstitute ${{ env.RELEASE_VERSION }} from commit ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
theme_color: 'e632ad'
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 }}" } ] }]'
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 }}" }] }]'
- name: Use Node.js (NPMJS) ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fdmg/resubstitute",
"version": "0.1.21",
"version": "0.1.25",
"description": "Pub/Sub drop-in replacement for Microsoft/ReSub",
"types": "ReSubstitute.d.ts",
"main": "ReSubstitute.js",
Expand Down

0 comments on commit 827f114

Please sign in to comment.