Quote envvar to match documentation
This commit is contained in:
Родитель
802709c076
Коммит
1b645d9a13
|
@ -35,9 +35,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
NOTE_FILES=$(git diff --name-only HEAD^ HEAD -- 'release-notes/release.md')
|
NOTE_FILES=$(git diff --name-only HEAD^ HEAD -- 'release-notes/release.md')
|
||||||
if [ -z "$NOTE_FILES" ] ; then
|
if [ -z "$NOTE_FILES" ] ; then
|
||||||
echo "IS_RELEASE=false" >> $GITHUB_OUTPUT
|
echo "IS_RELEASE=false" >> "$GITHUB_OUTPUT"
|
||||||
else
|
else
|
||||||
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
|
echo "IS_RELEASE=true" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install profile decompose sfdx plugin
|
- name: Install profile decompose sfdx plugin
|
||||||
|
@ -65,13 +65,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ -f destructive-changes/destructiveChangesPre.xml ] && [ -f destructive-changes/destructiveChangesPost.xml ]
|
if [ -f destructive-changes/destructiveChangesPre.xml ] && [ -f destructive-changes/destructiveChangesPost.xml ]
|
||||||
then
|
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 ]
|
elif [ -f destructive-changes/destructiveChangesPre.xml ]
|
||||||
then
|
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 ]
|
elif [ -f destructive-changes/destructiveChangesPost.xml ]
|
||||||
then
|
then
|
||||||
echo "DESTRUCTIVE_FILES=--postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> $GITHUB_OUTPUT;
|
echo "DESTRUCTIVE_FILES=--postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> "$GITHUB_OUTPUT";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Deploy to Production
|
- name: Deploy to Production
|
||||||
|
@ -102,7 +102,7 @@ jobs:
|
||||||
id: get_date
|
id: get_date
|
||||||
run: |
|
run: |
|
||||||
TODAYS_DATE=$(date +'%b %d, %Y')
|
TODAYS_DATE=$(date +'%b %d, %Y')
|
||||||
echo "RELEASE_DATE=$TODAYS_DATE" >> $GITHUB_OUTPUT
|
echo "RELEASE_DATE=$TODAYS_DATE" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
if: steps.check_release.outputs.IS_RELEASE == 'true' && steps.requires-deploy.outputs.changed == '1'
|
if: steps.check_release.outputs.IS_RELEASE == 'true' && steps.requires-deploy.outputs.changed == '1'
|
||||||
|
|
|
@ -54,7 +54,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ -f release-notes/${{ vars.ISSUE_BRANCH_PREFIX }}${{ steps.branchFilter.outputs.issueNumber }}.md ]
|
if [ -f release-notes/${{ vars.ISSUE_BRANCH_PREFIX }}${{ steps.branchFilter.outputs.issueNumber }}.md ]
|
||||||
then
|
then
|
||||||
echo "FIRST_DEPLOY=false" >> $GITHUB_OUTPUT; else echo "FIRST_DEPLOY=true" >> $GITHUB_OUTPUT;
|
echo "FIRST_DEPLOY=false" >> "$GITHUB_OUTPUT"; else echo "FIRST_DEPLOY=true" >> "$GITHUB_OUTPUT";
|
||||||
fi
|
fi
|
||||||
- name: Generate Destructive Changes Param
|
- name: Generate Destructive Changes Param
|
||||||
if: steps.branchFilter.outputs.matches == 'true' && steps.requires-deploy.outputs.changed == '1' && steps.check_first_deploy.outputs.FIRST_DEPLOY == 'true'
|
if: steps.branchFilter.outputs.matches == 'true' && steps.requires-deploy.outputs.changed == '1' && steps.check_first_deploy.outputs.FIRST_DEPLOY == 'true'
|
||||||
|
@ -62,13 +62,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ -f destructive-changes/destructiveChangesPre.xml ] && [ -f destructive-changes/destructiveChangesPost.xml ]
|
if [ -f destructive-changes/destructiveChangesPre.xml ] && [ -f destructive-changes/destructiveChangesPost.xml ]
|
||||||
then
|
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 ]
|
elif [ -f destructive-changes/destructiveChangesPre.xml ]
|
||||||
then
|
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 ]
|
elif [ -f destructive-changes/destructiveChangesPost.xml ]
|
||||||
then
|
then
|
||||||
echo "DESTRUCTIVE_FILES=--postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> $GITHUB_OUTPUT;
|
echo "DESTRUCTIVE_FILES=--postdestructivechanges destructive-changes/destructiveChangesPost.xml" >> "$GITHUB_OUTPUT";
|
||||||
fi
|
fi
|
||||||
- name: Authenticate to UAT Sandbox
|
- name: Authenticate to UAT Sandbox
|
||||||
if: steps.branchFilter.outputs.matches == 'true' && steps.requires-deploy.outputs.changed == '1'
|
if: steps.branchFilter.outputs.matches == 'true' && steps.requires-deploy.outputs.changed == '1'
|
||||||
|
@ -105,7 +105,7 @@ jobs:
|
||||||
ISSUE_JSON="${ISSUE_JSON//'%'/'%25'}"
|
ISSUE_JSON="${ISSUE_JSON//'%'/'%25'}"
|
||||||
ISSUE_JSON="${ISSUE_JSON//$'\n'/'%0A'}"
|
ISSUE_JSON="${ISSUE_JSON//$'\n'/'%0A'}"
|
||||||
ISSUE_JSON="${ISSUE_JSON//$'\r'/'%0D'}"
|
ISSUE_JSON="${ISSUE_JSON//$'\r'/'%0D'}"
|
||||||
echo "ISSUE=$ISSUE_JSON" >> $GITHUB_OUTPUT;
|
echo "ISSUE=$ISSUE_JSON" >> "$GITHUB_OUTPUT";
|
||||||
rm issue.json
|
rm issue.json
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4.15.4
|
- uses: stefanzweifel/git-auto-commit-action@v4.15.4
|
||||||
if: vars.GENERATE_RELEASE == 'true' && steps.check_first_deploy.outputs.FIRST_DEPLOY == 'true' && steps.branchFilter.outputs.matches == 'true'
|
if: vars.GENERATE_RELEASE == 'true' && steps.check_first_deploy.outputs.FIRST_DEPLOY == 'true' && steps.branchFilter.outputs.matches == 'true'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче