Skip to content

Test with CLI/CLI

Test with CLI/CLI #1

Workflow file for this run

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