Fix destructive changes paramater output (#54)
This commit is contained in:
Родитель
5249a0b5e2
Коммит
86ca1ecffc
|
@ -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'
|
||||
|
|
Загрузка…
Ссылка в новой задаче