aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yaml3
-rw-r--r--.github/workflows/deploy.yaml4
2 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index e5791c9..b878113 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -21,6 +21,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
+ with:
+ # The version script relies on history. Fetch 100 commits to be safe.
+ fetch-depth: 100
- name: Get version
id: version
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 9113188..82903f8 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -36,9 +36,11 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- # The Dockerfile will be needed.
- name: Checkout code
uses: actions/checkout@v2
+ with:
+ # The version script relies on history. Fetch 100 commits to be safe.
+ fetch-depth: 100
# Build the final production image and push it to GHCR.
# Tag it with both the short commit SHA and 'latest'.