Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,30 +165,6 @@ jobs:
echo "CSProj already matches tag version"
fi

- name: Create Pull Request for version update
uses: actions/github-script@v7
env:
VERSION: ${{ steps.vars.outputs.version }}
TAG: ${{ steps.vars.outputs.tag }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const headBranch = `ci/bump-version-${process.env.VERSION}`;
const base = `${{ github.event.repository.default_branch }}`;
const owner = context.repo.owner;
const repo = context.repo.repo;
const title = `chore: set package version to ${process.env.VERSION} (tag ${process.env.TAG})`;
const body = `This PR updates TenJames.CompMap.csproj version to ${process.env.VERSION} (created by release workflow for tag ${process.env.TAG}).`;

// Check for existing open PR from the same head
const existing = await github.pulls.list({ owner, repo, head: `${owner}:${headBranch}`, state: 'open' });
if (existing.data && existing.data.length > 0) {
console.log(`Found existing PR: ${existing.data[0].html_url}`);
} else {
const pr = await github.pulls.create({ owner, repo, title, head: headBranch, base, body });
console.log(`Created PR: ${pr.data.html_url}`);
}

- name: Pack
run: |
dotnet pack TenJames.CompMap/TenJames.CompMap/TenJames.CompMap.csproj -c Release -o ./nupkgs /p:PackageVersion=${{ steps.vars.outputs.version }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ obj/
riderModule.iml
/_ReSharper.Caches/
.idea/
nupkgs/*
2 changes: 1 addition & 1 deletion TenJames.CompMap/TenJames.CompMap/TenJames.CompMap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>0.0.5</Version>
<Version>0.0.6</Version>
<Title>Compiletime Mapper</Title>
<Description>Map your object on compile time</Description>
<PackageProjectUrl>https://github.com/Ten-James/CompMap</PackageProjectUrl>
Expand Down