Selaa lähdekoodia

Create action to modify kernel name

This action modifies the kernel name by adding 'Wild' and removing the 'dirty' flag.
jimsterino98 4 kuukautta sitten
vanhempi
sitoutus
cb6bd0d0ef
1 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  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"