Add branch configuration for pull_request trigger

Signed-off-by: temenuzhka-thede <temenuzhka.thede@docker.com>

Add check-latest option to set up go step

Signed-off-by: temenuzhka-thede <temenuzhka.thede@docker.com>
This commit is contained in:
temenuzhka-thede 2023-10-25 13:30:06 -05:00 committed by Nicolas De loof
parent c48e3c4a4f
commit d9e0e42d95
1 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,8 @@ on:
- '**/*.yaml' - '**/*.yaml'
- '**/*_test.go' - '**/*_test.go'
pull_request: pull_request:
branches:
- 'main'
paths-ignore: paths-ignore:
- '**/*.md' - '**/*.md'
- '**/*.txt' - '**/*.txt'
@ -33,13 +35,14 @@ jobs:
steps: steps:
- -
name: Checkout repository name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- -
name: Update Go name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version-file: go.mod go-version-file: go.mod
check-latest: true
- -
name: Initialize CodeQL name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2