From 6bd836fcc265de8f1b3c4eea32f3db4919845df3 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Tue, 9 Aug 2022 19:45:39 -0400 Subject: [PATCH] workflows: update action versions Pin to the last patch release of a Go minor, rather than the first. --- .github/workflows/go.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7aa24c42..cc85680e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,6 +1,5 @@ ---- name: Go -"on": +on: push: branches: [main] pull_request: @@ -11,7 +10,7 @@ permissions: env: # Minimum supported Go toolchain - ACTION_MINIMUM_TOOLCHAIN: "1.12" + ACTION_MINIMUM_TOOLCHAIN: "1.12.x" jobs: build: @@ -19,14 +18,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.17', '1.18'] + go: ['1.17.x', '1.18.x'] steps: - run: sudo apt-get -qq update - name: Install libsystemd-dev run: sudo apt-get install libsystemd-dev - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup go - uses: actions/setup-go@v1 + uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} - name: Go fmt @@ -44,9 +43,9 @@ jobs: - run: sudo apt-get -qq update - name: Install libsystemd-dev run: sudo apt-get install libsystemd-dev - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup go - uses: actions/setup-go@v1 + uses: actions/setup-go@v3 with: go-version: ${{ env['ACTION_MINIMUM_TOOLCHAIN'] }} - name: Go fmt