Forráskód Böngészése

Clean up parse branch action by removing comments

Removed commented-out conditions for setting BASE_BRANCH based on input branch names.
jimsterino98 1 hónapja
szülő
commit
49ab626de2
1 módosított fájl, 2 hozzáadás és 19 törlés
  1. 2 19
      .github/actions/parse-branch/action.yml

+ 2 - 19
.github/actions/parse-branch/action.yml

@@ -1,9 +1,5 @@
 name: parse branch
 description: parse branch names for cache keys
-inputs:
- branch:
-  description: 'device kernel'
-  required: true
 
 runs:
  using: composite
@@ -11,22 +7,9 @@ runs:
   - name: parse cache keys
     shell: bash
     run: |
-      #if [[ "${{ inputs.branch }}" == "SM-A546B-Oneui7" || "${{ inputs.branch }}" == "SM-A546E-Oneui7" ]]; then
-       #BASE_BRANCH="SM-A546X-Oneui7"
-       #echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
-      #elif [[ "${{ inputs.branch }}" == "SM-A546B-Oneui8" || "${{ inputs.branch }}" == "SM-A546E-Oneui8" ]]; then
-       #BASE_BRANCH="SM-A546X-Oneui8"
-       #echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
-      #elif [[ "${{ inputs.branch }}" == "SM-A055M-Oneui7" || "${{ inputs.branch }}" == "SM-A055F-Oneui7" ]]; then
-       #BASE_BRANCH="SM-A055X-Oneui7"
-       #echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
-      #elif [[ "${{ inputs.branch }}" == "SM-A556B-Oneui7-bitA" || "${{ inputs.branch }}" == "SM-A556E-Oneui7-bitA" ]]; then
-       #BASE_BRANCH="SM-A556X-Oneui7"
-       #echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
-      #else
-        FULL_BRANCH="${{ inputs.branch }}"
+        FULL_BRANCH="$BRANCH"
         echo "FULL_BRANCH=$FULL_BRANCH" >> $GITHUB_ENV
            
         BASE_BRANCH=$(echo "$FULL_BRANCH" | sed -E 's/(-bit[0-9]+.*$)|(-bit.*$)//i')
         echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
-      #fi
+