Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Build
uses: jcdcdev/jcdcdev.Umbraco.Github.Build@v17
uses: jcdcdev/jcdcdev.Umbraco.GitHub.Build@v17
with:
project-name: Umbraco.Community.FileSystemProviders.B2
project-path: src/Umbraco.Community.FileSystemProviders.B2/Umbraco.Community.FileSystemProviders.B2.csproj
36 changes: 30 additions & 6 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
default: false
type: boolean
schedule:
- cron: '0 2 * * *'
- cron: "0 2 * * *"
jobs:
get-branches:
outputs:
Expand All @@ -34,7 +34,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
branch: ${{fromJson(needs.get-branches.outputs.branches)}}
branch: ${{fromJson(needs.get-branches.outputs.branches)}}
runs-on: ubuntu-latest
env:
DRY_RUN: ${{ contains(github.event.inputs.dry-run, 'true') }}
Expand All @@ -43,25 +43,49 @@ jobs:
run: |
TARGET=$(echo ${{ matrix.branch }} | sed 's/dev\///')
SOURCE=${{ matrix.branch }}
# Extract major version from TARGET by removing all non-digit characters
MAJOR_VERSION=$(echo "$TARGET" | tr -dc '0-9')

if [ -z "$TARGET" ]; then
echo "TARGET is empty"
exit 1
fi

if [ -z "$SOURCE" ]; then
echo "SOURCE is empty"
exit 1
fi

if [ -z "$MAJOR_VERSION" ]; then
echo "MAJOR_VERSION is empty"
exit 1
fi

ACTION_VERSION="1"
if [[ "$MAJOR_VERSION" -lt "17" ]]; then
ACTION_VERSION="0"
fi

echo "SOURCE=$SOURCE"
echo "TARGET=$TARGET"
echo "ACTION_VERSION=$ACTION_VERSION"

echo "ACTION_VERSION=$ACTION_VERSION" >> $GITHUB_ENV
echo "SOURCE=$SOURCE" >> $GITHUB_ENV
echo "TARGET=$TARGET" >> $GITHUB_ENV
- name: Create Pull Request
id: create-pull-request
uses: jcdcdev/jcdcdev.GitHub.CreatePullRequest@main
- name: Create Pull Request - Action v0
if: ${{ env.ACTION_VERSION == '0' }}
id: create-pull-request-v0
uses: jcdcdev/jcdcdev.GitHub.CreatePullRequest@v0
with:
source-branch: ${{ env.SOURCE }}
target-branch: ${{ env.TARGET }}
dry-run: ${{ env.DRY_RUN }}
github-token: ${{ secrets.JCDC_BOT_TOKEN }}
- name: Create Pull Request - Action v1
if: ${{ env.ACTION_VERSION == '1' }}
id: create-pull-request-v1
uses: jcdcdev/jcdcdev.GitHub.CreatePullRequest@v1
with:
source-branch: ${{ env.SOURCE }}
target-branch: ${{ env.TARGET }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Build
id: build
uses: jcdcdev/jcdcdev.Umbraco.Github.Build@v17
uses: jcdcdev/jcdcdev.Umbraco.GitHub.Build@v17
with:
project-name: Umbraco.Community.FileSystemProviders.B2
project-path: src/Umbraco.Community.FileSystemProviders.B2/Umbraco.Community.FileSystemProviders.B2.csproj
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
default: false
type: boolean
schedule:
- cron: '30 23,11 * * *'
- cron: "30 23,11 * * *"
jobs:
get-refs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
ref: ${{fromJson(needs.get-refs.outputs.refs) }}
ref: ${{fromJson(needs.get-refs.outputs.refs) }}
steps:
- name: Update README
uses: jcdcdev/jcdcdev.Umbraco.GitHub.PackageReadme@main
Expand All @@ -47,4 +47,3 @@ jobs:
nuget-readme-filepath: ${{ env.NUGET_README_FILEPATH }}
branch: ${{ matrix.ref }}
api-key: ${{ secrets.SECURITY_POLICY_API_KEY }}

5 changes: 2 additions & 3 deletions .github/workflows/update-security-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
default: false
type: boolean
schedule:
- cron: '0 23,11 * * *'
- cron: "0 23,11 * * *"
jobs:
get-refs:
runs-on: ubuntu-latest
Expand All @@ -35,7 +35,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
ref: ${{fromJson(needs.get-refs.outputs.refs) }}
ref: ${{fromJson(needs.get-refs.outputs.refs) }}
steps:
- name: Update Security Policy
uses: jcdcdev/jcdcdev.Umbraco.GitHub.PackageSecurity@main
Expand All @@ -45,4 +45,3 @@ jobs:
security-policy-filepath: ${{ env.SECURITY_POLICY_FILEPATH }}
security-policy-api-key: ${{ secrets.SECURITY_POLICY_API_KEY }}
branch: ${{ matrix.ref }}

94 changes: 94 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
workflow: ""

assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
tag-prefix: "[vV]?"
tag-pre-release-weight: 60000
commit-message-incrementing: Enabled
commit-date-format: "yyyy-MM-dd"
mode: ContinuousDelivery
label: "{BranchName}"
increment: Inherit
prevent-increment:
of-merged-branch: false
when-branch-merged: false
when-current-commit-tagged: true
track-merge-target: false
track-merge-message: true
regex: ""
source-branches: []
is-source-branch-for: []
tracks-release-branches: false
is-release-branch: false
is-main-branch: false

ignore:
commits-before: 2025-11-25T00:00:00Z
sha: []
paths: []

strategies:
- MergeMessage
- TaggedCommit
- Fallback

branches:
vX-release:
regex: '^v(?<BranchName>\d+)$'
mode: ContinuousDeployment
label: ""
increment: Patch
is-main-branch: true
prevent-increment:
of-merged-branch: true
source-branches: []
pre-release-weight: 55000

dev-vX:
regex: '^dev\/v(?<BranchName>\d+)$'
mode: ContinuousDelivery
label: "alpha"
increment: Patch
source-branches: [vX-release]
is-main-branch: false
pre-release-weight: 30000

main:
regex: ^master$|^main$
mode: ContinuousDelivery
label: ""
increment: Patch
is-main-branch: true
prevent-increment:
of-merged-branch: true
source-branches: []
pre-release-weight: 55000

pull-request:
mode: ContinuousDelivery
label: PullRequest{Number}
increment: Inherit
prevent-increment:
of-merged-branch: false
when-current-commit-tagged: false
track-merge-message: true
regex: ^(pull-requests|pull|pr)[\/-](?<Number>\d*)
source-branches:
- main
- vX-release
- dev-vX
pre-release-weight: 30000

unknown:
mode: ContinuousDelivery
label: "{BranchName}"
increment: Inherit
prevent-increment:
when-current-commit-tagged: true
regex: (?<BranchName>.+)
source-branches:
- main
- vX-release
- dev-vX
- pull-request
pre-release-weight: 0
Loading