Publishing properties #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow to register a new application deployment with Raygun. | |
name: Raygun Deployment Tracking | |
on: | |
push: | |
tags: [prod/*] | |
jobs: | |
raygun-deployment: | |
name: Send deployment info to Raygun | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get the version number | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF##*/} | |
- name: Send to the Raygun Deployments API | |
id: send_deployment | |
uses: fjogeleit/[email protected] | |
with: | |
url: https://app.raygun.com/deployments?authToken=${{ secrets.RAYGUN_AUTHTOKEN }} | |
method: POST | |
data: >- | |
{ | |
"apiKey": "${{ secrets.RAYGUN_APIKEY }}", | |
"version": "${{ steps.get_version.outputs.VERSION }}", | |
"ownerName": "${{ github.event.pusher.name }}", | |
"emailAddress": "${{ github.event.pusher.email }}", | |
"scmIdentifier": "${{ github.sha }}" | |
} | |
- name: Show response | |
run: echo ${{ steps.send_deployment.outputs.response }} |