Fix destructive changes paramater output (#54)

This commit is contained in:
Max Goldfarb 2023-04-18 11:30:28 -04:00 коммит произвёл GitHub
Родитель 5249a0b5e2
Коммит 86ca1ecffc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 7 добавлений и 7 удалений

8
.github/workflows/push-to-main-handler.yml поставляемый
Просмотреть файл

@ -60,18 +60,18 @@ jobs:
rm -rf force-app/main/default/profiles/decomposed force-app/main/default/permissionsets/decomposed
- name: Generate Destructive Changes Param
if: steps.requires-deploy.outputs.changed == '1'
if: steps.branchFilter.outputs.matches == 'true' && steps.requires-deploy.outputs.changed == '1' && steps.check_first_deploy.outputs.FIRST_DEPLOY == 'true'
id: check_for_destructive_changes
run: |
if [ -f destructive-changes/destructiveChangesPre.xml ] && [ -f destructive-changes/destructiveChangesPost.xml ]
then
echo ::set-output name=DESTRUCTIVE_FILES::'--predestructivechanges destructive-changes/destructiveChangesPre.xml --postdestructivechanges destructive-changes/destructiveChangesPost.xml';
echo "DESTRUCTIVE_FILES=--predestructivechanges destructive-changes/destructiveChangesPre.xml --postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> $GITHUB_OUTPUT;
elif [ -f destructive-changes/destructiveChangesPre.xml ]
then
echo ::set-output name=DESTRUCTIVE_FILES::'--predestructivechanges destructive-changes/destructiveChangesPre.xml';
echo "DESTRUCTIVE_FILES=--predestructivechanges destructive-changes/destructiveChangesPre.xml" >> $GITHUB_OUTPUT;
elif [ -f destructive-changes/destructiveChangesPost.xml ]
then
echo ::set-output name=DESTRUCTIVE_FILES::'--postdestructivechanges destructive-changes/destructiveChangesPost.xml';
echo "DESTRUCTIVE_FILES=--postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> $GITHUB_OUTPUT;
fi
- name: Deploy to Production

Просмотреть файл

@ -62,13 +62,13 @@ jobs:
run: |
if [ -f destructive-changes/destructiveChangesPre.xml ] && [ -f destructive-changes/destructiveChangesPost.xml ]
then
echo "DESTRUCTIVE_FILES='--predestructivechanges destructive-changes/destructiveChangesPre.xml --postdestructivechanges destructive-changes/destructiveChangesPost.xml'" >> $GITHUB_OUTPUT;
echo "DESTRUCTIVE_FILES=--predestructivechanges destructive-changes/destructiveChangesPre.xml --postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> $GITHUB_OUTPUT;
elif [ -f destructive-changes/destructiveChangesPre.xml ]
then
echo "DESTRUCTIVE_FILES='--predestructivechanges destructive-changes/destructiveChangesPre.xml'" >> $GITHUB_OUTPUT;
echo "DESTRUCTIVE_FILES=--predestructivechanges destructive-changes/destructiveChangesPre.xml" >> $GITHUB_OUTPUT;
elif [ -f destructive-changes/destructiveChangesPost.xml ]
then
echo "DESTRUCTIVE_FILES='--postdestructivechanges destructive-changes/destructiveChangesPost.xml'" >> $GITHUB_OUTPUT;
echo "DESTRUCTIVE_FILES=--postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> $GITHUB_OUTPUT;
fi
- name: Authenticate to UAT Sandbox
if: steps.branchFilter.outputs.matches == 'true' && steps.requires-deploy.outputs.changed == '1'