Update Up
This commit is contained in:
+12
-12
@@ -54,21 +54,21 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
rm -rf temp_xiaosa
|
rm -rf temp_xiaosa
|
||||||
|
|
||||||
- name: Process Source Repo
|
# - name: Process Source Repo
|
||||||
run: |
|
# run: |
|
||||||
git clone --depth 1 https://github.com/fish2018/PG.git source-repo
|
# git clone --depth 1 https://github.com/fish2018/PG.git source-repo
|
||||||
|
|
||||||
cd source-repo
|
# cd source-repo
|
||||||
ZIP_FILE=$(find . -type f -name "pg.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9].zip" | sort -r | head -n 1)
|
# ZIP_FILE=$(find . -type f -name "pg.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9].zip" | sort -r | head -n 1)
|
||||||
|
|
||||||
if [ -z "$ZIP_FILE" ]; then
|
# if [ -z "$ZIP_FILE" ]; then
|
||||||
echo "Warning: No matching zip file found in Source Repo."
|
# echo "Warning: No matching zip file found in Source Repo."
|
||||||
else
|
# else
|
||||||
echo "Found zip file: $ZIP_FILE"
|
# echo "Found zip file: $ZIP_FILE"
|
||||||
|
|
||||||
unzip -o "$ZIP_FILE" -x "README.txt" -d ../target-repo/
|
# unzip -o "$ZIP_FILE" -x "README.txt" -d ../target-repo/
|
||||||
echo "PG zip extracted to target repo."
|
# echo "PG zip extracted to target repo."
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
working-directory: target-repo
|
working-directory: target-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user