Skip to content

Commit

Permalink
MS Teams release message
Browse files Browse the repository at this point in the history
  • Loading branch information
willemliufdmg committed Jul 28, 2022
1 parent 1124213 commit 9eab8f7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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 - Imgix Upload ${{ env.RELEASE_VERSION }}
summary: New release Imgix Upload ${{ env.RELEASE_VERSION }} from commit ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
theme_color: 'f8510f'
sections: '[{ "activityTitle": "Imgix Upload", "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

0 comments on commit 9eab8f7

Please sign in to comment.