File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,12 @@ jobs:
4646
4747 # Otherwise find the latest tag that starts with v and strip off the v
4848 LAST_TAG=$(git describe --tags --match "v*" --abbrev=0 2>/dev/null || echo "v0.0.0")
49- LAST_TAG="${LAST_TAG#v}"
5049
5150 # Compute a build number based on number of commits since that tag
5251 COMMITS_SINCE_TAG=$(git rev-list ${LAST_TAG}..HEAD --count)
5352
5453 # Final version: X.Y.Z
55- Version="${LAST_TAG}.${COMMITS_SINCE_TAG}"
54+ Version="${LAST_TAG#v }.${COMMITS_SINCE_TAG}"
5655 echo "version=$Version" >> $GITHUB_OUTPUT
5756 echo "no tag push; using $Version"
5857
Original file line number Diff line number Diff line change 1+ name : ' Test Report'
2+ # This is recommended to run after the CI workflow to publish test results since it has different
3+ # permissions
4+ on :
5+ workflow_run :
6+ workflows : ['CI'] # runs after CI workflow
7+ types :
8+ - completed
9+ permissions :
10+ contents : read
11+ actions : read
12+ checks : write
13+ jobs :
14+ report :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : dorny/test-reporter@v2
18+ with :
19+ artifact : saymore-test-results
20+ name : NUnit Tests
21+ path : ' *.xml' # Path to test results (inside artifact .zip)
22+ reporter : dotnet-nunit
You can’t perform that action at this time.
0 commit comments