1
0
Fork 0
mirror of https://github.com/imjasonh/gcp-metrics-action synced 2026-07-20 13:00:06 +00:00

one workflow

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-11-05 14:30:49 -05:00
parent 9ba0885aa3
commit af28eb788f
2 changed files with 2 additions and 30 deletions

View file

@ -1,30 +0,0 @@
name: Use Action (PR)
on:
pull_request_target:
branches: [ main ]
jobs:
example:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read # To view this workflow's metadata and logs
steps:
- uses: actions/checkout@v4
- uses: ./
with:
github-token: ${{ github.token }}
gcp-service-account-key: ${{ secrets.SERVICE_ACCOUNT_KEY }}
- 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"

View file

@ -3,6 +3,8 @@ name: Use Action
on:
push:
branches: [ main ]
pull_request_target:
branches: [ main ]
workflow_dispatch:
jobs: