Переглянути джерело

Create action to modify kernel name

This action modifies the kernel name by adding 'Wild' and removing the 'dirty' flag.
jimsterino98 4 місяців тому
батько
коміт
cb6bd0d0ef
1 змінених файлів з 18 додано та 0 видалено
  1. 18 0
      .github/actions/kernel-name/action.yml

+ 18 - 0
.github/actions/kernel-name/action.yml

@@ -0,0 +1,18 @@
+name: set kernel name
+description: add wild and remove dirty from kernel name
+
+runs:
+ using: composite
+ steps:
+  - name: add wild to kernel name
+    shell: bash
+    run: |
+     cd "$COMMON"
+
+     sed -i '$s|echo "\$res"|echo "\$res-Wild"|' ./scripts/setlocalversion
+
+  - name: remove dirty flag
+    shell: bash
+    run: |
+     
+     sed -i 's/-dirty//' "./$COMMON/scripts/setlocalversion"