diff --git a/.github/workflows/copy-content.yml b/.github/workflows/copy-content.yml index fcaaa81d..936d7a31 100644 --- a/.github/workflows/copy-content.yml +++ b/.github/workflows/copy-content.yml @@ -80,7 +80,7 @@ jobs: run: echo "date=$(date +'%d %b %Y, %H:%M:%S')" >> $GITHUB_OUTPUT - name: Copy files - run: cp -r source/${{ inputs.source_dir }}/* destination/${{ inputs.destination_dir }} + # run: cp -r source/${{ inputs.source_dir }}/* destination/${{ inputs.destination_dir }} - name: Stage destination changes run: | @@ -88,11 +88,12 @@ jobs: git config --global user.name "zeta-icons-bot" git config --global user.email "zeta-icons-bot@github.com" git add -A - + - run: cd destination; git diff - name: Check if there are changes id: changed run: | cd destination + git diff git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT - name: Commit and push changes diff --git a/.github/workflows/update_zds_android.yml b/.github/workflows/update_zds_android.yml index ba55f54d..9ce94674 100644 --- a/.github/workflows/update_zds_android.yml +++ b/.github/workflows/update_zds_android.yml @@ -14,7 +14,7 @@ jobs: with: repo: ZebraDevs/zds-android branch: "update-zeta-icons" - source_dir: "./outputs/android/." + source_dir: "outputs/android" destination_dir: "components/src/main/res/drawable" commit_msg: "Update icons" prerun: rm -f components/src/main/res/drawable/ic_*.xml