mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 17:50:34 +08:00
CI: merge jobs
This commit is contained in:
parent
5c919668d2
commit
51627c56cb
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -42,21 +42,20 @@ jobs:
|
|||||||
repository: SukkaLab/ruleset.skk.moe
|
repository: SukkaLab/ruleset.skk.moe
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
path: previous-build-${{ github.run_id }}-${{ github.run_number }}
|
path: previous-build-${{ github.run_id }}-${{ github.run_number }}
|
||||||
- run: mv previous-build-${{ github.run_id }}-${{ github.run_number }}/{.,}* ${{ steps.ramdisk.outputs.build_dir }}/
|
- name: Setup build folder
|
||||||
- name: build folder check
|
|
||||||
# If the public directory doesn't exist, the build should fail.
|
|
||||||
# If the public directory is empty, the build should fail.
|
|
||||||
run: |
|
run: |
|
||||||
|
mv previous-build-${{ github.run_id }}-${{ github.run_number }}/{.,}* ${{ steps.ramdisk.outputs.build_dir }}/
|
||||||
if [ ! -d ${{ steps.ramdisk.outputs.build_dir }}/.git ]; then
|
if [ ! -d ${{ steps.ramdisk.outputs.build_dir }}/.git ]; then
|
||||||
echo ".git not found"
|
echo ".git not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
rm -rf "${{ steps.ramdisk.outputs.build_dir }}/.git"
|
||||||
|
|
||||||
if [ ! -d ${{ steps.ramdisk.outputs.build_dir }}/List ]; then
|
if [ ! -d ${{ steps.ramdisk.outputs.build_dir }}/List ]; then
|
||||||
echo "List not found"
|
echo "List not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "public directory is ready: ${{ steps.ramdisk.outputs.build_dir }}"
|
echo "public directory is ready: ${{ steps.ramdisk.outputs.build_dir }}"
|
||||||
- run: rm -rf "${{ steps.ramdisk.outputs.build_dir }}/.git"
|
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
id: date
|
id: date
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user