Skip to content

Commit

Permalink
Add "What's new" automation (#150)
Browse files Browse the repository at this point in the history
* Add initial bits for what's new

* A few more bits

* Add .NET docs updates

* a few fixes

* Try this

* Move everything around

* More clean up

* Fix version

* Update docs/breadcrumb/toc.yml

Co-authored-by: Bill Wagner <[email protected]>

* Peer feedback

* Fix rebase issue

* Fix a few more links and terms

* Try fixing breadcrumb

---------

Co-authored-by: Bill Wagner <[email protected]>
  • Loading branch information
IEvangelist and BillWagner authored Dec 9, 2023
1 parent e61c6c8 commit 9fce132
Show file tree
Hide file tree
Showing 86 changed files with 400 additions and 411 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/whats-new-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "generate what's new article"

on:
schedule:
- cron: "0 2 1 * *" # The first of every month at 2 AM
workflow_dispatch:
inputs:
reason:
description: "The reason for running the workflow"
required: true
default: "Manual run"

jobs:
create-what-is-new:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4

- name: "Print manual run reason"
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "Reason: ${{ github.event.inputs.reason }}"
- uses: dotnet/docs-tools/WhatsNew.Cli@main
env:
GitHubKey: ${{ secrets.GITHUB_TOKEN }}
OspoKey: ${{ secrets.OSPO_KEY }}
with:
owner: dotnet
repo: docs-aspire
savedir: './docs/whats-new'

- name: create-pull-request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
with:
branch: create-whatsnew-pull-request/patch
title: "What's new article"
commit-message: 'Bot 🤖 generated "What''s new article"'
body: "Automated creation of What's new article."
28 changes: 28 additions & 0 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,34 @@
{
"source_path_from_root": "/docs/caching/quickstart-caching.md",
"redirect_url": "/dotnet/aspire/caching/caching-components"
},
{
"source_path_from_root": "/docs/app-host-overview.md",
"redirect_url": "/dotnet/aspire/fundamentals/app-host-overview"
},
{
"source_path_from_root": "/docs/components-overview.md",
"redirect_url": "/dotnet/aspire/fundamentals/components-overview"
},
{
"source_path_from_root": "/docs/dashboard.md",
"redirect_url": "/dotnet/aspire/fundamentals/dashboard"
},
{
"source_path_from_root": "/docs/health-checks.md",
"redirect_url": "/dotnet/aspire/fundamentals/health-checks"
},
{
"source_path_from_root": "/docs/service-defaults.md",
"redirect_url": "/dotnet/aspire/fundamentals/service-defaults"
},
{
"source_path_from_root": "/docs/setup-tooling.md",
"redirect_url": "/dotnet/aspire/fundamentals/setup-tooling"
},
{
"source_path_from_root": "/docs/telemetry.md",
"redirect_url": "/dotnet/aspire/fundamentals/telemetry"
}
]
}
Loading

0 comments on commit 9fce132

Please sign in to comment.