Skip to content

Commit f102ca0

Browse files
committed
Add Copilot setup steps workflow for JDK 17 and GitHub CLI integration
1 parent 618a0bb commit f102ca0

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/copilot-setup-steps.yml.txt renamed to .github/workflows/copilot-setup-steps.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
paths:
1010
- .github/workflows/copilot-setup-steps.yml
1111

12+
env:
13+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
1215
jobs:
1316
copilot-setup-steps:
1417
runs-on: ubuntu-latest
@@ -22,6 +25,10 @@ jobs:
2225
- name: Checkout code
2326
uses: actions/checkout@v6
2427

28+
- uses: actions/setup-node@v6
29+
with:
30+
node-version: 22
31+
2532
- name: Set up JDK 17
2633
uses: actions/setup-java@v5
2734
with:
@@ -35,9 +42,18 @@ jobs:
3542
- name: Download dependencies
3643
run: mvn dependency:go-offline -B
3744

38-
- name: Configure gh CLI authentication
45+
# Install gh-aw extension for advanced GitHub CLI features
46+
- name: Install gh-aw extension
47+
run: |
48+
curl -fsSL https://raw.githubusercontent.com/githubnext/gh-aw/refs/heads/main/install-gh-aw.sh | bash
49+
50+
# Verify installations
51+
- name: Verify tool installations
3952
run: |
40-
echo "GH_TOKEN=${{ github.token }}" >> "$GITHUB_ENV"
41-
gh auth status
42-
env:
43-
GH_TOKEN: ${{ github.token }}
53+
echo "=== Verifying installations ==="
54+
node --version
55+
npm --version
56+
java -version
57+
gh --version
58+
gh aw version
59+
echo "✅ All tools installed successfully"

0 commit comments

Comments
 (0)