From 5454c3d710c3063713c5e912f7cf85a4435e16da Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Wed, 16 Jun 2021 12:43:00 -0400 Subject: [PATCH] ci: snap: Fetch history to all branches and tags The snap/snapcraft.yaml set AGENT_VERSION to the current VERSION. The osbuilder script will try to checkout the AGENT_VERSION tag. Let's ensure that all tags and branches are fetched by the github's checkout action so the tag checkout does not fail. Fixes #2052 Signed-off-by: Wainer dos Santos Moschetta --- .github/workflows/snap-release.yaml | 2 ++ .github/workflows/snap.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/snap-release.yaml b/.github/workflows/snap-release.yaml index 9fca4ec370..bae353cad2 100644 --- a/.github/workflows/snap-release.yaml +++ b/.github/workflows/snap-release.yaml @@ -9,6 +9,8 @@ jobs: steps: - name: Check out Git repository uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Install Snapcraft uses: samuelmeuli/action-snapcraft@v1 diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml index 40abbde98a..165a3a3bef 100644 --- a/.github/workflows/snap.yaml +++ b/.github/workflows/snap.yaml @@ -6,6 +6,8 @@ jobs: steps: - name: Check out uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Install Snapcraft uses: samuelmeuli/action-snapcraft@v1