1
0
Fork 0
mirror of https://github.com/imjasonh/gcp-metrics-action synced 2026-07-16 12:12:03 +00:00

initial commit

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-11-05 10:39:50 -05:00
commit eb3bfbbb0c
14 changed files with 2071 additions and 0 deletions

32
.github/workflows/use-action.yaml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Example Workflow with Metrics
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
example:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
gcp-service-account-key: github-actions-metrics-key.json
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
- run: npm run lint || echo "No lint script configured"
- run: npm test
- run: echo "Building project..." && sleep 5 && echo "Build complete"