Skip to content

Commit

Permalink
chore: Exclude dependabot PRs from go test workflow (#29)
Browse files Browse the repository at this point in the history
Updated the **Go** test workflow to only run for **PR**s that are not created by `Dependabot`, as it cannot access the `secrets` required for testing.
  • Loading branch information
Fingertips18 authored Nov 23, 2024
1 parent 9abff0e commit 25e2119
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Go Test Workflow

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -12,10 +9,13 @@ jobs:
test:
name: Run Go Tests
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Go
uses: actions/setup-go@v5
Expand Down

0 comments on commit 25e2119

Please sign in to comment.