|
40 | 40 | echo "IS_RELEASE=true" >> "$GITHUB_OUTPUT" |
41 | 41 | fi |
42 | 42 |
|
43 | | - - name: Install profile decompose sfdx plugin |
| 43 | + - name: Install profile decompose sf plugin # ERROR: Unable to convert this command; you must convert it manually. |
| 44 | + |
44 | 45 | if: steps.requires-deploy.outputs.changed == '1' |
45 | 46 | run: echo y | npx sfdx-cli plugins:install @rdietrick/sfdx-profile-decompose |
46 | 47 |
|
|
51 | 52 | run: | |
52 | 53 | echo "${SALESFORCE_JWT_KEY}" > server.key |
53 | 54 | npx sfdx-cli force:auth:jwt:grant --clientid ${{ secrets.SALESFORCE_CLIENT_ID }} --jwtkeyfile server.key --username ${{ secrets.SALESFORCE_DEVHUB_USERNAME}} --setdefaultdevhubusername -a DevHub |
54 | | - npx sfdx-cli force:org:display --json -u DevHub > sfdx-auth.json |
| 55 | + npx sf org display --json -o DevHub > sfdx-auth.json |
55 | 56 |
|
56 | 57 | - name: Recompose profiles |
57 | 58 | if: steps.requires-deploy.outputs.changed == '1' && vars.SALESFORCE_FORMATTED_PROFILES_AND_PERMS == 'false' |
|
77 | 78 | - name: Deploy to Production |
78 | 79 | if: steps.requires-deploy.outputs.changed == '1' |
79 | 80 | run: | |
80 | | - npx sfdx-cli force:source:manifest:create --sourcepath force-app --manifestname temp-deploy-manifest |
81 | | - npx sfdx-cli force:source:deploy -u DevHub -x temp-deploy-manifest.xml ${{ steps.check_for_destructive_changes.outputs.DESTRUCTIVE_FILES }} -w 200 -l RunLocalTests |
| 81 | + sudo npx sf project generate manifest -p force-app -n temp-deploy-manifest |
| 82 | + sudo npx sf project deploy start -o DevHub -x temp-deploy-manifest.xml ${{ steps.check_for_destructive_changes.outputs.DESTRUCTIVE_FILES }} -w 200 -l RunLocalTests --ignore-conflicts |
82 | 83 |
|
83 | 84 | - name: Get Previous Tag |
84 | 85 | if: steps.check_release.outputs.IS_RELEASE == 'true' && steps.requires-deploy.outputs.changed == '1' |
@@ -121,16 +122,16 @@ jobs: |
121 | 122 | if: steps.requires-deploy.outputs.changed == '1' |
122 | 123 | run: | |
123 | 124 | echo "${SALESFORCE_TEMPLATE_JWT_SECRET_KEY}" > template-server.key |
124 | | - npx sfdx-cli force:auth:jwt:grant --clientid ${{ secrets.SALESFORCE_TEMPLATE_CONSUMER_KEY }} --jwtkeyfile template-server.key --username ${{ secrets.SALESFORCE_TEMPLATE_USERNAME}} -a Template --instanceurl https://test.salesforce.com |
125 | | - npx sfdx-cli force:org:display --json -u Template > sfdx-auth.json |
| 125 | + sudo npx sf org login jwt --client-id ${{ secrets.SALESFORCE_TEMPLATE_CONSUMER_KEY }} --jwt-key-file template-server.key --username ${{ secrets.SALESFORCE_TEMPLATE_USERNAME}} --alias Template --instance-url https://test.salesforce.com |
| 126 | + sudo npx sf org display --json -o Template > sfdx-auth.json |
126 | 127 | env: |
127 | 128 | SALESFORCE_TEMPLATE_JWT_SECRET_KEY: ${{ secrets.SALESFORCE_TEMPLATE_JWT_SECRET_KEY }} |
128 | 129 |
|
129 | 130 | - name: Update Template sandbox |
130 | 131 | if: steps.requires-deploy.outputs.changed == '1' |
131 | 132 | run: | |
132 | | - npx sfdx-cli force:source:manifest:create --sourcepath force-app --manifestname temp-deploy-manifest |
133 | | - npx sfdx-cli force:source:deploy -u Template -x temp-deploy-manifest.xml ${{ steps.check_for_destructive_changes.outputs.DESTRUCTIVE_FILES }} -w 200 -l RunLocalTests |
| 133 | + sudo npx sf project generate manifest -p force-app -n temp-deploy-manifest |
| 134 | + sudo npx sf org display --json -o Template > sfdx-auth.json |
134 | 135 |
|
135 | 136 | - name: Create PR with cleaned up destructive changes |
136 | 137 | if: steps.check_release.outputs.IS_RELEASE == 'true' && steps.requires-deploy.outputs.changed == '1' |
|
0 commit comments