Skip to content

Commit

Permalink
gha-find-replace version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
KBBA committed Jul 28, 2023
1 parent b1571d5 commit ef4f1be
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/test-build-push-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,15 @@ jobs:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Update project file version
uses: jacobtomlinson/gha-find-replace@v2
uses: jacobtomlinson/gha-find-replace@v1
with:
find: '(<Version>\d+\.\d+)\.(\d+)(<)'
replace: '$1.${{ github.run_number }}$3'
include: './Directory.Build.props'

# - name: modifiedfiles
# run: |
# echo ${{ env.modifiedfiles }}

# - name: print props
# run: |
# cat ./Directory.Build.props

- name: print props
run: |
cat ./Directory.Build.props
# Force GeneratePackageOnBuild to false since dotnet pack does not build when
# it is true (https://github.com/dotnet/sdk/issues/10335)
Expand Down

0 comments on commit ef4f1be

Please sign in to comment.