Skip to content

GitHub Action to create a log in a Logflare source

License

Notifications You must be signed in to change notification settings

Logflare/action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date
Jul 5, 2021
Nov 18, 2021
Dec 15, 2020
Dec 14, 2020
Dec 15, 2020
Dec 15, 2020
Dec 14, 2020
Dec 15, 2020
Dec 14, 2020
Dec 14, 2020
Nov 24, 2021
Nov 24, 2021
Dec 15, 2020

Repository files navigation

Logflare Log Action

GitHub Action to create a log in a Logflare source

Build Status

Usage

Before using the action, you need to create two secrets in your repository settings:

  1. LOGFLARE_API_KEY - your Logflare API Key, find it on your Logflare Dashboard
  2. LOGFLARE_SOURCE_ID - ID of one of your surces listed on your Logflare Dashboard

Example: Log every new release (example for github.event data)

name: Log new release
on:
  release:
    types: [published]

jobs:
  log:
    runs-on: ubuntu-latest
    steps:
      - uses: logflare/action@v1
        id: stats
        with:
          api_key: ${{ secrets.LOGFLARE_API_KEY }}
          source_id: ${{ secrets.LOGFLARE_SOURCE_ID }}
          message: "new release: ${{ github.event.release.html_url }}"
          metadata: |
            {
              "version": "${{ github.event.release.tag_name }}"
            }

Debugging

To see additional debug logs, create a secret with the name: ACTIONS_STEP_DEBUG and value true.

Contributing

See CONTRIBUTING.md

License

ISC