Skip to content

Commit

Permalink
Update packages.lock.json on version bump and add skip-changelog label
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Jul 7, 2023
1 parent b14b8c5 commit 90e2731
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ echo "$GLOBAL_JSON" > global.json

sed -i'' -E "s/^([[:space:]]+VERSION: )([0-9]+\.){2}[0-9]+$/\1$VERSION/" .github/workflows/release.yml
sed -i'' -E "s/<(Current(Assembly(File)?)?Version)>([0-9]+\.){2}[0-9]+<\/\1>/<\1>$VERSION<\/\1>/" Directory.Build.props

# Update packages.lock.json
dotnet restore --force-evaluate
10 changes: 9 additions & 1 deletion .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
5.0.x
6.0.x
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
Expand All @@ -30,7 +37,7 @@ jobs:
run: bash .github/bump-version.sh "${{ github.event.inputs.version }}"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.github_app_token.outputs.token }}
base: ${{ github.event.inputs.branch }}
Expand All @@ -39,6 +46,7 @@ jobs:
signoff: true
delete-branch: true
title: 'Bump version on ${{ github.event.inputs.branch }} to ${{ github.event.inputs.version }}.'
labels: skip-changelog
body: |
Bumping version on `${{ github.event.inputs.branch }}` to `${{ github.event.inputs.version }}`.

0 comments on commit 90e2731

Please sign in to comment.