Skip to content

Commit 85d11dc

Browse files
Update version to 0.20.0-preview and sync dev with v4 (#67)
1 parent bf6e9a2 commit 85d11dc

File tree

6 files changed

+47
-6
lines changed

6 files changed

+47
-6
lines changed

.autover/autover.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"Projects": [
33
{
44
"Name": "AWS.AspNetCore.DistributedCacheProvider",
5-
"Path": "src/AWS.DistributedCacheProvider/AWS.DistributedCacheProvider.csproj"
5+
"Path": "src/AWS.DistributedCacheProvider/AWS.DistributedCacheProvider.csproj",
6+
"PrereleaseLabel": "preview"
67
}
78
],
89
"UseCommitsForChangelog": false,
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Change File Included in PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, labeled]
6+
7+
jobs:
8+
check-files-in-directory:
9+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Release Not Needed') && !contains(github.event.pull_request.labels.*.name, 'Release PR') }}
10+
name: Change File Included in PR
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout PR code
15+
uses: actions/checkout@v3
16+
17+
- name: Get List of Changed Files
18+
id: changed-files
19+
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf #v45
20+
21+
- name: Check for Change File(s) in .autover/changes/
22+
env:
23+
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
24+
DIRECTORY: ".autover/changes/"
25+
run: |
26+
if echo "$CHANGED_FILES" | grep -q "$DIRECTORY"; then
27+
echo "✅ One or more change files in '$DIRECTORY' are included in this PR."
28+
else
29+
echo "❌ No change files in '$DIRECTORY' are included in this PR."
30+
echo "Refer to the 'Adding a change file to your contribution branch' section of https://github.com/awslabs/aws-dotnet-distributed-cache-provider/blob/main/CONTRIBUTING.md"
31+
exit 1
32+
fi
33+

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
dotnet-version: 8.0.x
5050
# Install AutoVer to automate versioning and changelog creation
5151
- name: Install AutoVer
52-
run: dotnet tool install --global AutoVer --version 0.0.21
52+
run: dotnet tool install --global AutoVer --version 0.0.25
5353
# Set up a git user to be able to run git commands later on
5454
- name: Setup Git User
5555
run: |

.github/workflows/sync-main-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
dotnet-version: 8.0.x
5353
# Install AutoVer which is needed to retrieve information about the current release.
5454
- name: Install AutoVer
55-
run: dotnet tool install --global AutoVer --version 0.0.21
55+
run: dotnet tool install --global AutoVer --version 0.0.25
5656
# Set up a git user to be able to run git commands later on
5757
- name: Setup Git User
5858
run: |
@@ -118,7 +118,7 @@ jobs:
118118
dotnet-version: 8.0.x
119119
# Install AutoVer which is needed to retrieve information about the current release.
120120
- name: Install AutoVer
121-
run: dotnet tool install --global AutoVer --version 0.0.21
121+
run: dotnet tool install --global AutoVer --version 0.0.25
122122
# Set up a git user to be able to run git commands later on
123123
- name: Setup Git User
124124
run: |

CONTRIBUTING.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ GitHub provides additional document on [forking a repository](https://help.githu
4040
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
4141

4242
## Adding a `change file` to your contribution branch
43+
4344
Each contribution branch should include a `change file` that contains a changelog message for each project that has been updated, as well as the type of increment to perform for those changes when versioning the project.
45+
4446
A `change file` looks like the following example:
4547
```json
4648
{
@@ -56,25 +58,30 @@ A `change file` looks like the following example:
5658
}
5759
```
5860
The `change file` lists all the modified projects, the changelog message for each project as well as the increment type.
61+
5962
These files are located in the repo at .autover/changes/
63+
6064
You can use the `AutoVer` tool to create the change file. You can install it using the following command:
6165
```
6266
dotnet tool install -g AutoVer
6367
```
68+
6469
You can create the `change file` using the following command:
6570
```
6671
autover change --project-name "AWS.AspNetCore.DistributedCacheProvider" -m "Fixed an issue causing a failure somewhere
6772
```
6873
Note: Make sure to run the command from the root of the repository.
74+
6975
You can update the command to specify which project you are updating.
7076
The available projects are:
7177
* AWS.AspNetCore.DistributedCacheProvider
78+
7279
The possible increment types are:
7380
* Patch
7481
* Minor
7582
* Major
76-
Note: You do not need to create a new `change file` for every changelog message or project within your branch. You can create one `change file` that contains all the modified projects and the changelog messages.
7783

84+
Note: You do not need to create a new `change file` for every changelog message or project within your branch. You can create one `change file` that contains all the modified projects and the changelog messages.
7885

7986
## Finding contributions to work on
8087
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

src/AWS.DistributedCacheProvider/AWS.DistributedCacheProvider.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<RootNamespace>AWS.DistributedCacheProvider</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<Version>2.0.0-preview.1</Version>
8+
<Version>0.20.0-preview</Version>
99
<PackageId>AWS.AspNetCore.DistributedCacheProvider</PackageId>
1010
<Title>AWS Provider for ASP.NET Core's IDistributedCache</Title>
1111
<Description>The AWS Distributed Cache provider provides an IDistributedCache implementation backed by DynamoDB.</Description>

0 commit comments

Comments
 (0)