-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.71 KB
/
Copy pathrelease-please.yml
File metadata and controls
65 lines (61 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release Please
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Get release version
uses: wemogy/get-release-version-action@v4.3.3
id: get-release-version
with:
create-tag: false
git-username: github-actions[bot]
git-email: 41898282+github-actions[bot]@users.noreply.github.com
mode: semantic
- name: Set project version
uses: vers-one/dotnet-project-version-updater@v1.8
with:
file: |
"**/*.csproj", "**/*.nuspec", "**/AssemblyInfo.cs"
version: ${{ steps.get-release-version.outputs.version }}
- name: Create PR with version updated
uses: googleapis/code-suggester@v5
env:
ACCESS_TOKEN: ${{ secrets.PAT }}
with:
command: pr
upstream_repo: panels
upstream_owner: samdouble
description: Update csproj
title: "chore: update csproj"
message: "chore: update csproj"
labels: automated pr
branch: update-csproj
primary: master
force: true
git_dir: .
fork: false
release-please:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Release Please
uses: googleapis/release-please-action@v5
with:
token: ${{ secrets.PAT }}
release-type: simple
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
target-branch: master