-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.73 KB
/
test.yml
File metadata and controls
64 lines (58 loc) · 1.73 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
name: Test Release Notes Generation
on:
workflow_dispatch:
inputs:
base-ref:
description: 'Base ref (tag, branch, or SHA)'
required: true
default: 'release-3.5.6'
head-ref:
description: 'Head ref (tag, branch, or SHA)'
required: true
default: 'release-3.5.7-beta1'
permissions:
contents: read
pull-requests: read
jobs:
test-generate:
runs-on: ubuntu-latest
steps:
- name: Checkout desktop/desktop
uses: actions/checkout@v4
with:
repository: desktop/desktop
ref: ${{ inputs.head-ref }}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch base ref
run: git fetch origin ${{ inputs.base-ref }}
- name: Generate Release Notes
id: notes
uses: github/copilot-release-notes@main
with:
base-ref: ${{ inputs.base-ref }}
head-ref: ${{ inputs.head-ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
- name: Print release notes
run: |
echo "=== Release Notes ==="
cat <<'RELEASE_NOTES_EOF'
${{ steps.notes.outputs.release-notes }}
RELEASE_NOTES_EOF
echo ""
echo "=== JSON ==="
cat <<'JSON_EOF'
${{ steps.notes.outputs.release-notes-json }}
JSON_EOF
echo ""
echo "=== Skipped PRs ==="
cat <<'SKIP_EOF'
${{ steps.notes.outputs.skipped-prs }}
SKIP_EOF
echo ""
echo "=== Uncertain Entries ==="
cat <<'UNCERTAIN_EOF'
${{ steps.notes.outputs.uncertain-entries }}
UNCERTAIN_EOF