Skip to content

Commit

Permalink
ci(github): update ci workflow (#514)
Browse files Browse the repository at this point in the history
#### CI
- update github ci workflow

Signed-off-by: Prashant Shahi <[email protected]>
  • Loading branch information
prashant-shahi authored Jan 17, 2025
1 parent 8b5861b commit 41dc90e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ on:

jobs:
test:
if: contains(github.event.pull_request.labels.*.name, 'safe-to-test') || (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]')
if: (! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]') || (contains(github.event.pull_request.labels.*.name, 'safe-to-test') && github.event.pull_request.head.repo.fork) || (github.actor != 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
uses: signoz/primus.workflows/.github/workflows/go-test.yaml@main
secrets: inherit
with:
PRIMUS_REF: main
GO_TEST_CONTEXT: ./...
fmt:
if: contains(github.event.pull_request.labels.*.name, 'safe-to-test') || (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]')
if: (! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]') || (contains(github.event.pull_request.labels.*.name, 'safe-to-test') && github.event.pull_request.head.repo.fork) || (github.actor != 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
uses: signoz/primus.workflows/.github/workflows/go-fmt.yaml@main
secrets: inherit
with:
PRIMUS_REF: main
lint:
if: contains(github.event.pull_request.labels.*.name, 'safe-to-test') || (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]')
if: (! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]') || (contains(github.event.pull_request.labels.*.name, 'safe-to-test') && github.event.pull_request.head.repo.fork) || (github.actor != 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
uses: signoz/primus.workflows/.github/workflows/go-lint.yaml@main
secrets: inherit
with:
Expand Down

0 comments on commit 41dc90e

Please sign in to comment.