https://github.com/mdp/openobserve_github_action_logs
Send Github Action logs to an OpenObserve instance
https://github.com/mdp/openobserve_github_action_logs
Last synced: about 1 year ago
JSON representation
Send Github Action logs to an OpenObserve instance
- Host: GitHub
- URL: https://github.com/mdp/openobserve_github_action_logs
- Owner: mdp
- License: mit
- Created: 2023-07-24T20:58:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-25T20:33:11.000Z (over 2 years ago)
- Last Synced: 2025-02-10T18:12:24.587Z (over 1 year ago)
- Language: TypeScript
- Size: 885 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Upload Github Action logs to OpenObserve
Example:
```yaml
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
npm ci
- run: |
npm run all
- run: npm test
inception:
runs-on: ubuntu-latest
needs: build-and-test # wait until build-and-test in done
steps:
- uses: actions/checkout@v3
- uses: mdp/openobserve_github_action_logs
with:
openobserve_endpoint: ${{ secrets.OPENOBSERVE_ENDPOINT }} # https://api.openobserve.ai/api/[org]/[stream]/_json
openobserve_username: ${{ secrets.OPENOBSERVE_USERNAME }}
openobserve_key: ${{ secrets.OPENOBSERVE_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }} # You don't need to set this in Secrets as it's included by default in workflows
```