Fix conditions to publish packages in GitHub workflows

This commit is contained in:
Frédéric Guillot 2024-03-10 11:59:31 -07:00
parent 382885f144
commit eaaeb68474
6 changed files with 8 additions and 7 deletions

View file

@ -12,7 +12,8 @@ jobs:
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.22.x"
check-latest: true
- name: Checkout
uses: actions/checkout@v4
- name: Compile binaries

View file

@ -31,7 +31,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.22.x"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3

View file

@ -56,7 +56,7 @@ jobs:
if-no-files-found: error
retention-days: 3
publish-packages:
if: github.event.push
if: github.event_name == 'push'
name: Publish Packages
runs-on: ubuntu-latest
steps:

View file

@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.22.x"
- run: "go vet ./..."
- uses: golangci/golangci-lint-action@v4
with:

View file

@ -38,7 +38,7 @@ jobs:
if-no-files-found: error
retention-days: 3
publish-package:
if: github.event.push
if: github.event_name == 'push'
name: Publish Packages
runs-on: ubuntu-latest
steps:

View file

@ -15,7 +15,7 @@ jobs:
max-parallel: 4
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
go-version: ["1.22"]
go-version: ["1.22.x"]
steps:
- name: Set up Go
uses: actions/setup-go@v5
@ -43,7 +43,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.22.x"
- name: Checkout
uses: actions/checkout@v4
- name: Install Postgres client