We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2fe821 commit 5257915Copy full SHA for 5257915
.github/workflows/build.yaml
@@ -31,7 +31,7 @@ jobs:
31
commit_count="$(git rev-list --count --since=$midnight_timestamp HEAD)"
32
commit_count="$(printf "%02d" ${commit_count})"
33
version="${calver_date}${commit_count}"
34
- else
+ elif [[ "${{ github.ref }}" =~ ^refs/heads/ ]]; then
35
today="$(date --utc '+%Y-%m-%d')"
36
midnight_timestamp="$(date --utc +%s --date=$today)"
37
calver_date="$(date --utc --date=$today '+%Y.%-m.dev%-d')"
0 commit comments