Skip to content

Commit

Permalink
dumper: Fix error in dumper a prop defined twice.
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Dee <[email protected]>
  • Loading branch information
cd-Crypton authored Feb 26, 2024
1 parent 47e5f02 commit 8f08535
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gitlab-dumprx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
cd workspace/dumprx
bash dumper.sh ${{ github.event.inputs.FIRMWARE_LINK }}
cd out
echo "MANUFACTURER_NAME=$(grep "ro.product.vendor.manufacturer" vendor/build.prop | awk -F "=" '{print $2}' | awk '{print $1}' | uniq)" >> $GITHUB_ENV
echo "MANUFACTURER_NAME=$(grep "ro.product.vendor.manufacturer" vendor/build.prop | awk -F "=" 'NR==2 {split($2, words, " "); print words[1]}')" >> $GITHUB_ENV
- name: Set Variables - if oplus
if: env.MANUFACTURER_NAME == 'oplus'
Expand All @@ -53,16 +53,16 @@ jobs:
echo "ro.vendor.oplus.market.name=ossi-${{ github.run_id }}" > build.prop
cd ..
fi
echo "VENDOR_NAME=$(grep "ro.vendor.oplus.market.name" odm/build.prop | awk -F "=" '{print $2}' | uniq)" >> $GITHUB_ENV
echo "BRANCH=$(grep "ro.vendor.build.id" vendor/build.prop | awk -F "=" '{print $2}' | uniq)" >> $GITHUB_ENV
echo "VENDOR_NAME=$(grep "ro.vendor.oplus.market.name" odm/build.prop | awk -F "=" 'NR==2 {split($2, words, " "); print words[1]}')" >> $GITHUB_ENV
echo "BRANCH=$(grep "ro.vendor.build.id" vendor/build.prop | awk -F "=" 'NR==2 {split($2, words, " "); print words[1]}')" >> $GITHUB_ENV
- name: Set Variables - if others
if: env.MANUFACTURER_NAME != 'oplus'
run: |
cd workspace/dumprx/out
rm -rf .git
echo "VENDOR_NAME=$(grep "ro.product.vendor.device" vendor/build.prop | awk -F "=" '{print $2}' | uniq)" >> $GITHUB_ENV
echo "BRANCH=$(grep "ro.vendor.build.id" vendor/build.prop | awk -F "=" '{print $2}' | uniq)" >> $GITHUB_ENV
echo "VENDOR_NAME=$(grep "ro.product.vendor.device" vendor/build.prop | awk -F "=" 'NR==2 {split($2, words, " "); print words[1]}')" >> $GITHUB_ENV
echo "BRANCH=$(grep "ro.vendor.build.id" vendor/build.prop | awk -F "=" 'NR==2 {split($2, words, " "); print words[1]}')" >> $GITHUB_ENV
- name: Create Gitlab Repository
run: |
Expand Down

0 comments on commit 8f08535

Please sign in to comment.