Github Actions x LaMetric

March 30, 2020 ยท View on GitHub

lametric

Send notification to your LaMetric using Github Actions

Demo of action

Usage

To use the action simply add the following lines to your workflow.yml file.

...
  steps:
      - uses: actions/checkout@v2
      - uses: pgrimaud/action-lametric@v1
        env:
            LAMETRIC_ACCESS_TOKEN: ${{ secrets.LAMETRIC_ACCESS_TOKEN }}
            LAMETRIC_PUSH_URL: ${{ secrets.LAMETRIC_PUSH_URL }}
            NOTIFICATION_TEXT: ${{ secrets.NOTIFICATION_TEXT }} # optional
            NOTIFICATION_ICON: ${{ secrets.NOTIFICATION_ICON }} # optional

LaMetric configuration

1 - Create a LaMetric developer account here : https://developer.lametric.com/

2 - Create a new INDICATOR APP

LaMetric Indicator App

3 - Select a default icon and default name

4 - Set communication type to Push

Communication type

5 - Click on bottom button Next

6 - Fill the form.

!!!IMPORTANT!!! : Set App visibility to PRIVATE

image

7 - Save and publish app

8 - Get Push URL from LaMetric App and set it to secret var LAMETRIC_PUSH_URL in your repository

9 - Get Access token from LaMetric App and set it to secret var LAMETRIC_ACCESS_TOKEN in your repository

10 - Download App on your LaMetric

11 - Active notify on your LaMetric app (optional: choose a sound for notification)

image

12 - Done!

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.