git describe tag test #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test git describe on a tag | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 # explicitly use 20.04, see commit 428c40018a | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
fetch-tags: false | |
- name: >- | |
WORKAROUND: Fetch tags that points to the revisions | |
checked-out(actions/checkout#1467) | |
run: |- | |
git fetch \ | |
--prune \ | |
--depth=1 \ | |
--no-recurse-submodules | |
- name: Check git describe | |
run: | | |
git describe |