From 156d0253fb32b7265b224dfd9e2005936a8d3753 Mon Sep 17 00:00:00 2001 From: Shihyu Ho Date: Tue, 9 Jul 2024 17:24:22 +0800 Subject: [PATCH] ci: update workflow --- .github/workflows/release.yaml | 2 +- .github/workflows/run-tests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 59831f2..7135c18 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,7 +23,7 @@ jobs: github_token: ${{ github.token }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} - goversion: https://dl.google.com/go/go1.20.linux-amd64.tar.gz + goversion: 1.22 pre_command: go test ./... && export CGO_ENABLED=0 ldflags: -s -w -X main.version=${{ github.event.release.tag_name }} binary_name: memory-calculator diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 49d3800..3ccb348 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -3,7 +3,7 @@ on: workflow_dispatch: push: pull_request: - types: [opened, synchronize, reopened] + types: [opened, synchronize, reopened, auto_merge_enabled] jobs: run-tests: