Explorar el Código

Retrieve commit hashes for SUSFS and KSUN

Added steps to retrieve commit hashes for SUSFS and KSUN and post them on the release body
jimsterino98 hace 2 meses
padre
commit
8a354bcfb9
Se han modificado 1 ficheros con 19 adiciones y 5 borrados
  1. 19 5
      .github/workflows/main.yml

+ 19 - 5
.github/workflows/main.yml

@@ -157,6 +157,14 @@ jobs:
           path: ./downloaded-artifacts
           pattern: '*-AnyKernel3'
 
+      - name: get ksun and susfs commit hashes
+        run: |
+         echo "SUSFS_510=(git ls-remote https://gitlab.com/simonpunk/susfs4ksu.git refs/heads/gki-android12-5.10 | cut -f1)" >> $GITHUB_ENV
+         echo "SUSFS_515=(git ls-remote https://gitlab.com/simonpunk/susfs4ksu.git refs/heads/gki-android13-5.15 | cut -f1)" >> $GITHUB_ENV
+         echo "SUSFS_61=(git ls-remote https://gitlab.com/simonpunk/susfs4ksu.git refs/heads/gki-android14-6.1 | cut -f1)" >> $GITHUB_ENV
+         echo "SUSFS_66=(git ls-remote https://gitlab.com/simonpunk/susfs4ksu.git refs/heads/gki-android15-6.6 | cut -f1)" >> $GITHUB_ENV
+         echo "KSUN_HASH=(git ls-remote https://github.com/pershoot/KernelSU-Next.git refs/heads/dev | cut -f1)" >> $GITHUB_ENV
+
       - name: Set release body
         run: |
           cat << 'EOF' > release_body.md
@@ -171,13 +179,13 @@ jobs:
 
           if [ "${{ inputs.ksun }}" = "true" ]; then
           cat <<'EOF' >> release_body.md
-          -> KernelSU-Next v3.2.0
+          -> KernelSU-Next v3.2.0 - https://github.com/KernelSU-Next/KernelSU-Next
           EOF
           fi
 
           if [ "${{ inputs.susfs }}" = "true" ]; then
           cat <<'EOF' >> release_body.md
-          -> SUSFS ඞ v2.2.0
+          -> SUSFS ඞ v2.2.0 - https://gitlab.com/simonpunk/susfs4ksu
           -> SUSFS Inline hooks
           EOF
           fi
@@ -246,9 +254,15 @@ jobs:
           Module: 
           -> https://github.com/sidex15/ksu_module_susfs
           -> https://github.com/rrr333nnn333/BRENE
-      
-          Manager:
-          -> KSUN: https://github.com/KernelSU-Next/KernelSU-Next
+
+          Commit Hashes:
+          KSUN: ${{ env.KSUN_HASH }}
+          
+          SUSFS: 
+          android12-5.10: ${{ env.SUSFS_510 }}
+          android13-5.15: ${{ env.SUSFS_515 }}
+          android14-6.1: ${{ env.SUSFS_61 }}
+          android15-6.6: ${{ env.SUSFS_66 }}
           EOF
 
       - name: Create GitHub Release