Skip to content

Commit

Permalink
sfd
Browse files Browse the repository at this point in the history
  • Loading branch information
danzuep committed Dec 5, 2023
1 parent c04b8e3 commit 7ca61fd
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,29 @@ jobs:
versionSpec: '5.x'

# https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/execute/usage-examples.md#example-5
# For a list of all GitVersion Version Variables, see https://gitversion.net/docs/reference/variables
# pwsh> dotnet-gitversion | ConvertFrom-Json
- name: Use GitVersion to determine version
id: gitversion # e.g. steps.gitversion.outputs.<outputName>
uses: gittools/actions/gitversion/execute@v0

# For a list of all GitVersion Version Variables, see https://gitversion.net/docs/reference/variables
- run: |
echo 'Save the GitVersion outputs to a file.'
echo "${{ steps.gitversion.outputs }}" > version.txt
echo "SEMVER=${{ steps.gitversion.outputs.semVer }}" >> $GITHUB_ENV
# - run: |
# echo 'Save the GitVersion outputs to a file.'
# echo "Major: ${{ steps.gitversion.outputs.major }}" > version.txt
# echo "Minor: ${{ steps.gitversion.outputs.minor }}" >> version.txt
# echo "Patch: ${{ steps.gitversion.outputs.patch }}" >> version.txt
# echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" >> version.txt
# echo 'Semantic Version: ${{ steps.gitversion.outputs.semVer }}' >> version.txt
# echo 'Full Semantic Version: ${{ steps.gitversion.outputs.fullSemVer }}' >> version.txt
# echo "PreReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}" >> version.txt
# echo "BuildMetaData: ${{ steps.gitversion.outputs.buildMetaData }}" >> version.txt
# echo 'CommitDate: ${{ steps.gitversion.outputs.commitDate }}' >> version.txt

# https://github.com/actions/upload-artifact
- name: Upload version artifacts
uses: actions/upload-artifact@v3
with:
path: |
version.txt
release-notes.txt
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary
Expand Down

0 comments on commit 7ca61fd

Please sign in to comment.