From 29603954bd7ee3c6cbe0f9656e776cb2297b94b5 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 24 Jul 2024 22:28:50 +0800 Subject: [PATCH] .github: update actions versions --- .github/actions/setup-go/action.yml | 6 +++--- .github/workflows/main.yml | 28 ++++++++++++++-------------- .github/workflows/release.yaml | 4 ++-- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index e3e91f0419..77209cb400 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -19,13 +19,13 @@ runs: steps: - name: setup go ${{ inputs.go-version }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: '${{ inputs.go-version }}' - - name: go module and build cache + - name: go cache if: ${{ inputs.use-build-cache == 'yes' }} - uses: actions/cache@v3 + uses: actions/cache@v4 with: # In order: # * Module download cache diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e82038aa4..38676b282c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup go ${{ env.GO_VERSION }} uses: ./.github/actions/setup-go @@ -74,7 +74,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup go ${{ env.GO_VERSION }} uses: ./.github/actions/setup-go @@ -105,7 +105,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -131,7 +131,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -174,7 +174,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup go ${{ env.GO_VERSION }} uses: ./.github/actions/setup-go @@ -197,7 +197,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup go ${{ env.GO_VERSION }} uses: ./.github/actions/setup-go @@ -230,7 +230,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -239,7 +239,7 @@ jobs: uses: ./.github/actions/rebase - name: git checkout fuzzing seeds - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: lightninglabs/lnd-fuzz path: lnd-fuzz @@ -293,7 +293,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -360,7 +360,7 @@ jobs: args: backend=bitcoind dbbackend=postgres nativesql=true steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -411,7 +411,7 @@ jobs: if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')' steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -455,7 +455,7 @@ jobs: if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')' steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -504,7 +504,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: ensure dependencies at correct version run: if ! grep -q "${{ matrix.pinned_dep }}" go.mod; then echo dependency ${{ matrix.pinned_dep }} should not be altered ; exit 1 ; fi @@ -521,7 +521,7 @@ jobs: run: rm -rf /opt/hostedtoolcache - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: release notes check run: scripts/check-release-notes.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8a6a0ea40d..5135365b50 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,12 +20,12 @@ jobs: runs-on: ubuntu-latest steps: - name: git checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: setup go ${{ env.GO_VERSION }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: '${{ env.GO_VERSION }}'