diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2023-04-27 10:31:03 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-04-27 12:59:22 +1000 |
commit | 82a59a824c77c933a622498b9005dc50a026904e (patch) | |
tree | 0ee912f305db6e83dcf5bf71892d93e249fd92e3 | |
parent | 294baf52b346e400e2255c6c1e82af5b978b18f7 (diff) | |
download | micropython-82a59a824c77c933a622498b9005dc50a026904e.tar.gz micropython-82a59a824c77c933a622498b9005dc50a026904e.zip |
github/workflows: Fetch full history for mpremote workflow.
Instead of doing the shallow checkout followed by an unshallow-with-tags,
just set fetch-depth=0 to get the full history to start with.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-rw-r--r-- | .github/workflows/mpremote.yml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/.github/workflows/mpremote.yml b/.github/workflows/mpremote.yml index 3cfb9d47d3..14aef03e07 100644 --- a/.github/workflows/mpremote.yml +++ b/.github/workflows/mpremote.yml @@ -13,11 +13,9 @@ jobs: steps: - uses: actions/checkout@v3 with: - # Version is determined from git, - # should be deep enough to get to latest tag - fetch-depth: '1000' - - run: | - git fetch --prune --unshallow --tags + # Setting this to zero means fetch all history and tags, + # which hatch-vcs can use to discover the version tag. + fetch-depth: 0 - uses: actions/setup-python@v4 - name: Install build tools run: pip install build |