-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.29 KB
/
Copy pathexample-pr.yml
File metadata and controls
48 lines (44 loc) · 1.29 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
name: example-pr
on:
pull_request:
workflow_dispatch: # 👈 manual trigger here to release - should only be on "release" workflows, not "pr" workflows
inputs:
force-release:
description: "Force a release regardless of PR labels or branch"
type: boolean
required: false
default: false
permissions:
actions: read
contents: write
packages: write
pull-requests: write
security-events: write
jobs:
dotnet-package-pr:
permissions:
actions: read
contents: write
packages: write
pull-requests: write
security-events: write
uses: ./.github/workflows/dotnet-package-pr.yml
with:
working-directory: "./examples/NugetPackages"
os: ubuntu-latest
dotnet-version: 10.0.x
# is-release-branch: ${{ github.ref == 'refs/heads/main' }} for "release" workflows only
# force-release: ${{ github.event.inputs.force-release || false }} for "release" workflows only
secrets: inherit
dotnet-minimal-web-api-pr:
permissions:
actions: read
contents: read
pull-requests: write
security-events: write
uses: ./.github/workflows/dotnet-pr.yml
with:
working-directory: "./examples/MinimalWebApi"
os: "ubuntu-latest"
dotnet-version: "10.0.x"
secrets: inherit