Update
This commit is contained in:
@@ -52,16 +52,16 @@ jobs:
|
|||||||
id: compare_main_yml_files
|
id: compare_main_yml_files
|
||||||
run: |
|
run: |
|
||||||
if cmp -s .github/workflows/main.yml <(git show upstream/main:.github/workflows/main.yml); then
|
if cmp -s .github/workflows/main.yml <(git show upstream/main:.github/workflows/main.yml); then
|
||||||
echo "main.yml file is consistent"
|
|
||||||
echo "MAIN_YML_FILES_INCONSISTENT=False" >> $GITHUB_OUTPUT
|
echo "MAIN_YML_FILES_INCONSISTENT=False" >> $GITHUB_OUTPUT
|
||||||
|
echo "main.yml file is consistent"
|
||||||
else
|
else
|
||||||
echo "main.yml file is inconsistent"
|
|
||||||
echo "MAIN_YML_FILES_INCONSISTENT=True" >> $GITHUB_OUTPUT
|
echo "MAIN_YML_FILES_INCONSISTENT=True" >> $GITHUB_OUTPUT
|
||||||
echo "::error title=main.yml file is inconsistent!::"\
|
echo "main.yml file is inconsistent"
|
||||||
"The contents of your current branch's 'main.yml' file "\
|
echo "::error title=main.yml file is inconsistent!::\
|
||||||
"do not match the contents of your upstream branch's "\
|
The content of the 'main.yml' file in the current branch does not match \
|
||||||
"'main.yml' file! You need to synchronize the upstream "\
|
the content of the 'main.yml' file in the upstream branch! You need to \
|
||||||
"branch manually!"
|
synchronize the upstream branch manually! If you don't synchronize, there \
|
||||||
|
is a chance that your code will have an uncontrollable fatal bug!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 定义备份和还原的文件后缀列表
|
# 定义备份和还原的文件后缀列表
|
||||||
|
|||||||
Reference in New Issue
Block a user