Skip to content

Commit

Permalink
More logging and omit body fix (#150)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Gołębiowski <[email protected]>
  • Loading branch information
tomaszgolebiowski and Tomasz Gołębiowski authored Nov 22, 2024
1 parent c19171e commit fec8f9c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/actions/next-version-gen/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ outputs:
next-version-tag:
description: 'Name of the tag used to mark version in git'
value: ${{ steps.version.outputs.next-version-tag }}
agent-version:
description: 'Ref of agent version'
value: ${{ steps.version.outputs.agent-version }}
runs:
using: "composite"
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/next-version-gen/generateVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ do {
else { break }
} while($true)

$agentVersion = Get-Content "agent\agent.version"

"next-version=$nextVersion" >> $env:GITHUB_OUTPUT
"next-version-tag=$nextVersionTag" >> $env:GITHUB_OUTPUT
"agent-version=$agentVersion" >> $env:GITHUB_OUTPUT

Write-Host "Next version: $nextVersion"
Write-Host "Next version tag name: $nextVersionTag"
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
key: ${{ runner.os }}-nuget-${{ github.sha }}
restore-keys: ${{ runner.os }}-nuget-

- name: Cache agent
- name: Cache agent (${{ steps.version.outputs.agent-version }})
id: cache-agent
uses: actions/cache@v4
with:
Expand All @@ -66,13 +66,13 @@ jobs:
shell: pwsh
run: ./agent/runBuildAgent.ps1

- name: Set version on AssemblyInfo.cs files
- name: Set version on AssemblyInfo.cs files (${{ steps.version.outputs.next-version }})
uses: dannevesdantas/[email protected]
with:
version: ${{ steps.version.outputs.next-version }}
path: src/

- name: Set version for .vsixmanifest file
- name: Set version for .vsixmanifest file (${{ steps.version.outputs.next-version }})
uses: cezarypiatek/[email protected]
with:
version: ${{ steps.version.outputs.next-version }}
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
files: TestResults/**/*.trx

#Publish
- name: Create git tag
- name: Create git tag (${{ steps.version.outputs.next-version-tag }})
uses: actions/github-script@v6
with:
script: |
Expand All @@ -130,7 +130,8 @@ jobs:
with:
tag: ${{ steps.version.outputs.next-version-tag }}
name: Cody for Visual Studio ${{ steps.version.outputs.next-version }}
prerelease: true
omitBody: true
prerelease: ${{ github.event.inputs.publish == 'Preview' }}
artifacts: src/Cody.VisualStudio/bin/${{ env.Configuration }}/Cody.VisualStudio.vsix

- name: Create custom VSIX feed
Expand Down

0 comments on commit fec8f9c

Please sign in to comment.