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 }}
|
GITEA_SHA: ${{ github.sha }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Clone repository
|
||||||
uses: https://git.jc2009.com/admin/actions-checkout@v4
|
|
||||||
|
|
||||||
- name: Pull Git LFS
|
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
git lfs install
|
rm -rf repo
|
||||||
git lfs pull
|
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 {} \;
|
find music -type f -name "*.mp3" -exec ls -lh {} \;
|
||||||
|
|
||||||
echo "MP3 file headers:"
|
echo "MP3 file headers:"
|
||||||
find music -type f -name "*.mp3" -exec sh -c 'echo "---- $1"; head -c 80 "$1"; echo' _ {} \;
|
find music -type f -name "*.mp3" -exec sh -c 'echo "---- $1"; head -c 80 "$1"; echo' _ {} \;
|
||||||
|
|
||||||
- name: Show workspace
|
- name: Show workspace
|
||||||
|
working-directory: repo
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
ls -la
|
ls -la
|
||||||
find . -maxdepth 2 -type f | sort | head -80
|
find . -maxdepth 2 -type f | sort | head -80
|
||||||
|
|
||||||
- name: Build stable zip
|
- name: Build stable zip
|
||||||
|
working-directory: repo
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -71,6 +72,7 @@ jobs:
|
|||||||
ls -lh dist/media-assets.zip
|
ls -lh dist/media-assets.zip
|
||||||
|
|
||||||
- name: Publish stable release asset
|
- name: Publish stable release asset
|
||||||
|
working-directory: repo
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user