action.yml 877 B

123456789101112131415161718192021222324
  1. name: 'Apply Unicode Fix Patch'
  2. description: 'Apply unicode bypass fix patch with version-specific patch selection'
  3. inputs:
  4. kernel_version:
  5. description: 'Kernel version (e.g., 6.1)'
  6. required: true
  7. runs:
  8. using: 'composite'
  9. steps:
  10. - name: Apply Unicode Fix Patch
  11. shell: bash
  12. working-directory: ${{ github.workspace }}/kernel/common
  13. run: |
  14. set -euo pipefail
  15. KERNEL_VERSION="${{ inputs.kernel_version }}"
  16. MIN_VERSION="5.16"
  17. echo "Patching unicode!"
  18. if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
  19. patch -p1 --forward < "${{ github.workspace }}/kernel_patches/common/unicode_bypass_fix_6.1-.patch"
  20. else
  21. patch -p1 --forward < "${{ github.workspace }}/kernel_patches/common/unicode_bypass_fix_6.1+.patch"
  22. fi