Skip to content

Commit

Permalink
Merge pull request #33 from jcdcdev/dev/v14
Browse files Browse the repository at this point in the history
14.0.3
  • Loading branch information
jcdcdev authored Oct 8, 2024
2 parents 754e8f1 + 3210825 commit fe14e31
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 58 deletions.
21 changes: 0 additions & 21 deletions .github/dependabot.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 🤖 Auto Assign
on:
issues:
types: [opened, edited, labeled, unlabeled]
pull_request:
types: [opened, edited, labeled, unlabeled]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/auto-assign@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
reviewers: |
${{ github.repository_owner }}
assignees: |
${{ github.repository_owner }}
9 changes: 2 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: 🏗️ Build
on:
pull_request:
branches: "*"
workflow_dispatch:
jobs:
metadata:
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/generate-project-metadata.yml@dev
build:
runs-on: ubuntu-latest
needs:
- metadata
steps:
- name: Build
uses: jcdcdev/jcdcdev.Umbraco.Github.Build@main
with:
project-name: ${{ needs.metadata.outputs.project-name}}
project-path: ${{ needs.metadata.outputs.project-path }}
project-name: jcdcdev.Umbraco.Core
project-path: src/jcdcdev.Umbraco.Core/jcdcdev.Umbraco.Core.csproj
umbraco-version: 14
36 changes: 14 additions & 22 deletions .github/workflows/pr.yml → .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: 🔃 Create PRs
name: 📤 Create PRs
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Run the workflow without creating PRs'
description: "Dry run: Run the workflow without creating a Pull Request"
required: false
default: false
type: boolean
schedule:
- cron: '0 0 * * *'
- cron: '0 2 * * *'
jobs:
get-branches:
outputs:
Expand Down Expand Up @@ -36,12 +36,10 @@ jobs:
matrix:
branch: ${{fromJson(needs.get-branches.outputs.branches)}}
runs-on: ubuntu-latest
env:
DRY_RUN: ${{ contains(github.event.inputs.dry-run, 'true') }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Env
- name: Set Variables
run: |
TARGET=$(echo ${{ matrix.branch }} | sed 's/dev\///')
SOURCE=${{ matrix.branch }}
Expand All @@ -56,22 +54,16 @@ jobs:
exit 1
fi
if [ "$SOURCE" == "$TARGET" ]; then
echo "SOURCE is the same as TARGET"
exit 1
fi
echo "SOURCE=$SOURCE"
echo "TARGET=$TARGET"
echo "SOURCE=$SOURCE" >> $GITHUB_ENV
echo "TARGET=$TARGET" >> $GITHUB_ENV
- name: Run the Action
if: ${{ github.event.inputs.dry-run == 'false' }}
uses: devops-infra/[email protected]
- name: Create Pull Request
id: create-pull-request
uses: jcdcdev/jcdcdev.GitHub.CreatePullRequest@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: ${{ env.SOURCE }}
target_branch: ${{ env.TARGET }}
title: "Merge ${{ env.SOURCE }} into ${{ env.TARGET }}"
reviewer: ${{ github.repository_owner }}
assignee: ${{ github.repository_owner }}
source-branch: ${{ env.SOURCE }}
target-branch: ${{ env.TARGET }}
dry-run: ${{ env.DRY_RUN }}
github-token: ${{ secrets.JCDC_BOT_TOKEN }}
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@ on:
workflow_dispatch:
pull_request:
types: [ closed ]
jobs:
metadata:
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/generate-project-metadata.yml@dev
jobs:
release:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- metadata
steps:
- name: Build
id: build
uses: jcdcdev/jcdcdev.Umbraco.GitHub.Build@main
with:
project-name: ${{ needs.metadata.outputs.project-name}}
project-path: ${{ needs.metadata.outputs.project-path }}
project-name: jcdcdev.Umbraco.Core
project-path: src/jcdcdev.Umbraco.Core/jcdcdev.Umbraco.Core.csproj
umbraco-version: 14
- name: Release
uses: jcdcdev/jcdcdev.Umbraco.GitHub.Release@main
Expand Down
2 changes: 1 addition & 1 deletion src/TestSite.14/TestSite.14.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="14.0.0"/>
<PackageReference Include="Umbraco.Cms" Version="14.2.0"/>
<PackageReference Include="uSync" Version="14.0.0"/>
</ItemGroup>

Expand Down

0 comments on commit fe14e31

Please sign in to comment.