From a00e26fbc0bc892352a29c215afdf3e47861288f Mon Sep 17 00:00:00 2001 From: Nikolay Eskov Date: Fri, 8 Nov 2024 15:42:02 +0300 Subject: [PATCH 1/3] Fetch repo tags in 'Deploy node' workflow. --- .github/workflows/deploy_node.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy_node.yml b/.github/workflows/deploy_node.yml index 0240c5da4..844c97b57 100644 --- a/.github/workflows/deploy_node.yml +++ b/.github/workflows/deploy_node.yml @@ -72,6 +72,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v4 + with: + fetch-tags: true - name: Get dependencies run: go mod vendor From 6010485197d52733d41dc496264d177e1545ef25 Mon Sep 17 00:00:00 2001 From: Nikolay Eskov Date: Fri, 8 Nov 2024 15:48:42 +0300 Subject: [PATCH 2/3] Fetch full repo history in 'Deploy node' workflow. --- .github/workflows/deploy_node.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy_node.yml b/.github/workflows/deploy_node.yml index 844c97b57..ab847c9c5 100644 --- a/.github/workflows/deploy_node.yml +++ b/.github/workflows/deploy_node.yml @@ -73,6 +73,7 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v4 with: + fetch-depth: 0 fetch-tags: true - name: Get dependencies From 5eb2f5f8bf6a6b2391a073061360ddc67b7c0a71 Mon Sep 17 00:00:00 2001 From: Nikolay Eskov Date: Fri, 8 Nov 2024 16:48:41 +0300 Subject: [PATCH 3/3] Remove unnecessary 'default'. --- .github/workflows/deploy_node.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy_node.yml b/.github/workflows/deploy_node.yml index ab847c9c5..6ccbe3bfa 100644 --- a/.github/workflows/deploy_node.yml +++ b/.github/workflows/deploy_node.yml @@ -21,7 +21,6 @@ on: required: true type: string description: "Machine architecture (amd64, arm64)" - default: "amd64" secrets: SSH_PRIVATE_KEY: required: false # should be taken from the environment secrets