Test CLI Generic (No Instructions) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test CLI Generic (No Instructions) | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| base-ref: | |
| description: 'Base ref' | |
| required: true | |
| default: 'v2.88.1' | |
| head-ref: | |
| description: 'Head ref' | |
| required: true | |
| default: 'v2.89.0' | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| test-cli-generic: | |
| 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: Generate Release Notes (Generic) | |
| 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 (Generic) ===" | |
| cat <<'EOF' | |
| ${{ steps.notes.outputs.release-notes }} | |
| EOF |