Skip to content

Commit cabf797

Browse files
committed
Merge branch 'v15' into dev/v15
# Conflicts: # .github/workflows/update-security-policy.yml
2 parents 7cb0dfe + aee5027 commit cabf797

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: 📄 Update README
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
dry-run:
6+
description: "Dry run: Run the workflow without making any changes"
7+
required: false
8+
default: false
9+
type: boolean
10+
schedule:
11+
- cron: '30 23,11 * * *'
12+
jobs:
13+
get-refs:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
refs: ${{ steps.get-refs.outputs.refs }}
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: Get refs
23+
id: get-refs
24+
shell: pwsh
25+
run: |
26+
$refs = git branch -r --list 'origin/dev/v*' | ForEach-Object { $_.Trim() -replace 'origin/', '' } | Sort-Object -Unique | ConvertTo-Json -Compress
27+
echo "refs=$refs" >> $env:GITHUB_OUTPUT
28+
update:
29+
runs-on: ubuntu-latest
30+
needs: get-refs
31+
env:
32+
DRY_RUN: ${{ github.event.inputs.dry-run }}
33+
PROJECT_NAME: Umbraco.Community.SimpleDashboards
34+
README_FILEPATH: ./.github/README.md
35+
NUGET_README_FILEPATH: ./docs/README_nuget.md
36+
strategy:
37+
max-parallel: 1
38+
matrix:
39+
ref: ${{fromJson(needs.get-refs.outputs.refs) }}
40+
steps:
41+
- name: Update README
42+
uses: jcdcdev/jcdcdev.Umbraco.GitHub.PackageReadme@main
43+
with:
44+
dry-run: ${{ env.DRY_RUN }}
45+
project-name: ${{ env.PROJECT_NAME }}
46+
readme-filepath: ${{ env.README_FILEPATH }}
47+
nuget-readme-filepath: ${{ env.NUGET_README_FILEPATH }}
48+
branch: ${{ matrix.ref }}
49+
api-key: ${{ secrets.SECURITY_POLICY_API_KEY }}
50+

.github/workflows/update-security-policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id: get-refs
2424
shell: pwsh
2525
run: |
26-
$refs = git branch -r --list 'origin/v*' | ForEach-Object { $_.Trim() -replace 'origin/', '' } | Sort-Object -Unique | ConvertTo-Json -Compress
26+
$refs = git branch -r --list 'origin/dev/v*' | ForEach-Object { $_.Trim() -replace 'origin/', '' } | Sort-Object -Unique | ConvertTo-Json -Compress
2727
echo "refs=$refs" >> $env:GITHUB_OUTPUT
2828
update:
2929
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)