diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f72ca7b..9cc40d2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -26,6 +26,24 @@ jobs: run: | echo $RELEASE_VERSION echo ${{ env.RELEASE_VERSION }} + - name: Set Timezone + uses: szenius/set-timezone@v1.0 + 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/microsoft-teams-actions@v0.8.0 + 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: diff --git a/package-lock.json b/package-lock.json index 60381e4..a1d96c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fdmg/resubstitute", - "version": "0.1.21", + "version": "0.1.25", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@fdmg/resubstitute", - "version": "0.1.21", + "version": "0.1.25", "license": "ISC", "devDependencies": { "@types/jest": "^29.5.12", diff --git a/package.json b/package.json index 6b53b6a..85bcedf 100644 --- a/package.json +++ b/package.json @@ -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",