mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-19 02:12:10 +08:00
2e786bf2c9
* chore(deps): update github/gh-aw-actions action to v1.3.1 * chore(deps): update gh-aw extension version to v1.3.1 - Also bump version value of `with.version` Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> * chore: update gh-aw to version 1.3.1 - Updated `gh-aw` version from `1.3.0` to `1.3.1` in workflow configuration Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> * chore(gh-aw): update allowed network identifiers for better maintainability Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> * feat(gh-aw): update model routing logic Rather than judging auto-routing standard by GitHub Copilot itself, explicitly set the cost level to "economy" to reduce AI Credits costs of one collaborator's classic PAT. Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> --------- Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
name: "Copilot Setup Steps"
|
|
|
|
# This workflow configures the environment for GitHub Copilot Agent with gh-aw MCP server
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- .github/workflows/copilot-setup-steps.yml
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
# The job MUST be called 'copilot-setup-steps' to be recognized by GitHub Copilot Agent
|
|
copilot-setup-steps:
|
|
name: Copilot Setup Steps
|
|
runs-on: ubuntu-latest
|
|
|
|
# Set minimal permissions for setup steps
|
|
# Copilot Agent receives its own token with appropriate permissions
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install gh-aw extension
|
|
uses: github/gh-aw-actions/setup-cli@dfe97a19c8249d41e2adfc95f92db2b8facea58f # v1.3.1
|
|
with:
|
|
version: v1.3.1
|
|
- name: Install Rust Stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy, rustfmt
|
|
- name: Install Linux build dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libxslt1.1 libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v6
|
|
with:
|
|
run_install: false
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '26.13.1'
|
|
cache: 'pnpm'
|
|
- name: Install frontend dependencies
|
|
env:
|
|
HUSKY: 0
|
|
run: pnpm install --frozen-lockfile
|