-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (65 loc) · 2.02 KB
/
test-cli.yml
File metadata and controls
72 lines (65 loc) · 2.02 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
66
67
68
69
70
71
72
name: Test with CLI/CLI
on:
workflow_dispatch:
inputs:
base-ref:
description: 'Base ref (tag, branch, or SHA)'
required: true
default: 'v2.88.1'
head-ref:
description: 'Head ref (tag, branch, or SHA)'
required: true
default: 'v2.89.0'
permissions:
contents: read
pull-requests: read
jobs:
test-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout cli/cli
uses: actions/checkout@v4
with:
repository: cli/cli
ref: ${{ inputs.head-ref }}
fetch-depth: 0
token: ${{ secrets.COPILOT_GITHUB_TOKEN }}
- name: Fetch base ref
run: git fetch origin ${{ inputs.base-ref }}
- name: Checkout instructions file
uses: actions/checkout@v4
with:
repository: github/copilot-release-notes
path: _action-config
sparse-checkout: cli-release-notes-instructions.md
- name: Generate Release Notes (CLI Style)
id: notes
uses: github/copilot-release-notes@main
with:
base-ref: ${{ inputs.base-ref }}
head-ref: ${{ inputs.head-ref }}
instructions: '_action-config/cli-release-notes-instructions.md'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
- name: Print release notes
run: |
echo "=== Release Notes (CLI Style) ==="
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