Skip to content

Commit

Permalink
Fetch full git history for snap build job
Browse files Browse the repository at this point in the history
Snapcraft needs full git history
so it can build the version string for the snap from git tags.
  • Loading branch information
samuelallan72 committed Oct 15, 2024
1 parent e9633e1 commit 2c76639
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0 # Complete git history is required to generate the version from git tags.
- name: Setup Python
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
runs-on: [[ubuntu-22.04]]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Complete git history is required to generate the version from git tags.

- name: Determine system architecture
run: echo "SYSTEM_ARCH=$(uname -m)" >> $GITHUB_ENV
Expand Down

0 comments on commit 2c76639

Please sign in to comment.