https://github.com/pgrimaud/action-lametric
Send notification to your LaMetric using Github Actions
https://github.com/pgrimaud/action-lametric
Last synced: about 2 months ago
JSON representation
Send notification to your LaMetric using Github Actions
- Host: GitHub
- URL: https://github.com/pgrimaud/action-lametric
- Owner: pgrimaud
- License: mit
- Created: 2020-03-27T14:47:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-30T10:30:20.000Z (about 5 years ago)
- Last Synced: 2024-05-01T23:16:11.267Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Github Actions x LaMetric

Send notification to your LaMetric using Github Actions

## Usage
To use the action simply add the following lines to your workflow.yml file.
```yaml
...
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**

3 - Select a default icon and default name
4 - Set communication type to **Push**

5 - Click on bottom button **Next**
6 - Fill the form.
**!!!IMPORTANT!!! : Set App visibility to PRIVATE**

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)

12 - Done!
## License
The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE).