Skip to content

Commit

Permalink
Update Unity Package Version Sync Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Dec 20, 2024
1 parent 362eb6f commit 3ce5ff1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/sync-unity-package-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ on:
- 'src/Directory.Build.props'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
sync-unity-version:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand All @@ -27,3 +34,11 @@ jobs:
- name: Sync Unity Package Version
run: dotnet-script ./.github/scripts/sync-unity-version.csx

- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add -u
git commit -m "Sync Unity Package Versions"
git push
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DefaultVersion>1.1.2</DefaultVersion>
<DefaultVersion>1.1.3</DefaultVersion>
<DefaultTargetFrameworks>net7.0;net8.0;netstandard2.1;</DefaultTargetFrameworks>
<Copyright>reown inc.</Copyright>
<PackageProjectUrl>https://reown.com/</PackageProjectUrl>
Expand Down

0 comments on commit 3ce5ff1

Please sign in to comment.