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:
parent
9ba0885aa3
commit
af28eb788f
2 changed files with 2 additions and 30 deletions
30
.github/workflows/use-action-pr.yaml
vendored
30
.github/workflows/use-action-pr.yaml
vendored
|
|
@ -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"
|
||||
2
.github/workflows/use-action.yaml
vendored
2
.github/workflows/use-action.yaml
vendored
|
|
@ -3,6 +3,8 @@ name: Use Action
|
|||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request_target:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue