Browse Source

Refactor unicode action to use env variable

jimsterino98 1 month ago
parent
commit
c244c91240
1 changed files with 2 additions and 6 deletions
  1. 2 6
      .github/actions/unicode/action.yml

+ 2 - 6
.github/actions/unicode/action.yml

@@ -1,9 +1,5 @@
 name: unicode fix
 description: idk just got it from Fatal
-inputs:
-  kernel_version:
-   description: 'Kernel version (6.1)'
-   required: true
 
 runs:
  using: composite
@@ -12,9 +8,9 @@ runs:
     shell: bash
     run: |
      cd "$COMMON"
-     echo "detected kernel version: ${{ inputs.kernel_version }}"
+     echo "detected kernel version: $KERNEL_VERSION"
 
-     if [[ ${{ inputs.kernel_version }} == 6.* ]]; then
+     if [[ $KERNEL_VERSION == 6.* ]]; then
       cp "$KERNEL_PATCHES/common/unicode_bypass_fix_6.1+.patch" .
       patch -p1 < unicode_bypass_fix_6.1+.patch
      else