Skip to content

Commit

Permalink
Update build-kernel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWildJames authored Jan 9, 2025
1 parent 938024d commit 8b93e68
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,39 +50,26 @@ jobs:
echo "$GITHUB_WORKSPACE/avb_keys" >> $GITHUB_PATH
fi
# Step 3: Install GitHub CLI (gh) using the .deb file
- name: Install GitHub CLI (gh) using .deb file
run: |
# Download the latest .deb file for GitHub CLI
GH_VERSION=$(curl -s https://api.github.com/repos/cli/cli/releases/latest | jq -r .tag_name)
curl -LO https://github.com/cli/cli/releases/download/$GH_VERSION/gh_$GH_VERSION_linux_amd64.deb
# Install the .deb package using dpkg
sudo dpkg -i gh_$GH_VERSION_linux_amd64.deb
# Fix missing dependencies (if any)
sudo apt-get install -f -y
# Step 4: Authenticate with GitHub CLI
# Step 3: Authenticate with GitHub CLI (already available in GitHub Actions)
- name: Authenticate with GitHub CLI
run: |
# Authenticate using GITHUB_TOKEN or a Personal Access Token
gh auth login --with-token <<< ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Step 5: Set git username and email
# Step 4: Set git username and email
- name: Set Git username and email
run: |
git config --global user.name "TheWildJames"
git config --global user.email "[email protected]"
# Step 6: Clone kernel build scripts
# Step 5: Clone kernel build scripts
- name: Clone kernel build scripts
run: |
git clone https://github.com/TheWildJames/kernel_build_scripts.git
# Step 7: Run kernel build script
# Step 6: Run kernel build script
- name: Run kernel build script
run: |
chmod +x kernel_build_scripts/GKI/aio_gki_build_kernel_release.sh
Expand Down

0 comments on commit 8b93e68

Please sign in to comment.