fix(ci): clone repository directly for media assets bundle
Some checks failed
release / release (push) Failing after 6s
Some checks failed
release / release (push) Failing after 6s
This commit is contained in:
@@ -15,29 +15,30 @@ jobs:
|
||||
GITEA_SHA: ${{ github.sha }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://git.jc2009.com/admin/actions-checkout@v4
|
||||
|
||||
- name: Pull Git LFS
|
||||
- name: Clone repository
|
||||
run: |
|
||||
set -e
|
||||
|
||||
git lfs install
|
||||
git lfs pull
|
||||
rm -rf repo
|
||||
git clone https://git.jc2009.com/client-commons/media-assets.git repo
|
||||
cd repo
|
||||
git rev-parse HEAD
|
||||
|
||||
echo "Music files after git lfs pull:"
|
||||
echo "Music files after clone:"
|
||||
find music -type f -name "*.mp3" -exec ls -lh {} \;
|
||||
|
||||
echo "MP3 file headers:"
|
||||
find music -type f -name "*.mp3" -exec sh -c 'echo "---- $1"; head -c 80 "$1"; echo' _ {} \;
|
||||
|
||||
- name: Show workspace
|
||||
working-directory: repo
|
||||
run: |
|
||||
pwd
|
||||
ls -la
|
||||
find . -maxdepth 2 -type f | sort | head -80
|
||||
|
||||
- name: Build stable zip
|
||||
working-directory: repo
|
||||
run: |
|
||||
set -e
|
||||
|
||||
@@ -71,6 +72,7 @@ jobs:
|
||||
ls -lh dist/media-assets.zip
|
||||
|
||||
- name: Publish stable release asset
|
||||
working-directory: repo
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user