action.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: 'Setup SUSFS Branch'
  2. description: 'Clone SUSFS repo and cherry-pick commits'
  3. inputs:
  4. susfs_commit:
  5. description: 'SUSFS commit hash (empty = latest on auto-derived gki-{version} branch)'
  6. required: false
  7. default: ""
  8. version:
  9. description: 'Kernel config version (e.g., android15-6.6)'
  10. required: true
  11. runs:
  12. using: "composite"
  13. steps:
  14. - name: Clone SUSFS Branch
  15. shell: bash
  16. run: |
  17. set -euo pipefail
  18. SUSFS_BRANCH="gki-${{ inputs.version }}"
  19. SUSFS_REPO="https://gitlab.com/simonpunk/susfs4ksu.git"
  20. echo "Preparing SUSFS for branch: $SUSFS_BRANCH"
  21. echo "Cloning latest from $SUSFS_BRANCH..."
  22. git clone "$SUSFS_REPO" -b "$SUSFS_BRANCH" susfs4ksu
  23. if [ -n "${{ inputs.susfs_commit }}" ]; then
  24. echo "Checking out SUSFS commit: ${{ inputs.susfs_commit }}"
  25. cd ${{ github.workspace }}/susfs4ksu
  26. git checkout "${{ inputs.susfs_commit }}"
  27. fi
  28. cd susfs4ksu
  29. COMMIT1="8d2420be13e43d4cc0d80215d08ed475081a1404"
  30. COMMIT2="ee71ca33d08710d686f2bdba27cacefe9e615fb9"
  31. git remote add pershoot https://gitlab.com/pershoot/susfs4ksu.git
  32. git fetch pershoot gki-android14-6.1-dev
  33. git cherry-pick "$COMMIT1"
  34. git cherry-pick "$COMMIT2"