File tree Expand file tree Collapse file tree 7 files changed +37
-22
lines changed
src/main/default/lwc/gameApp Expand file tree Collapse file tree 7 files changed +37
-22
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,13 @@ jobs:
5454 needs : formatting-and-lwc-tests
5555 steps :
5656 # Install Salesforce CLI
57- - name : Install Salesforce CLI
57+ - name : ' Install Salesforce CLI'
5858 run : |
59- wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
60- mkdir sfdx-cli
61- tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-components 1
62- ./sfdx-cli/install
59+ wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
60+ mkdir ~/sfdx
61+ tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1
62+ echo "$HOME/sfdx/bin" >> $GITHUB_PATH
63+ ~/sfdx/bin/sfdx version
6364
6465 # Checkout the code in the pull request
6566 - name : ' Checkout source code'
6869 # Store secret for dev hub
6970 - name : ' Populate auth file with DEVHUB_SFDX_URL secret'
7071 shell : bash
71- run : ' echo ${{ secrets.DEVHUB_SFDX_URL}} > ./DEVHUB_SFDX_URL.txt'
72+ run : |
73+ echo ${{ secrets.DEVHUB_SFDX_URL}} > ./DEVHUB_SFDX_URL.txt
74+ secretFileSize=$(wc -c "./DEVHUB_SFDX_URL.txt" | awk '{print $1}')
75+ if [ $secretFileSize == 1 ]; then
76+ echo "Missing DEVHUB_SFDX_URL secret. Is this workflow running on a fork?";
77+ exit 1;
78+ fi
7279
7380 # Authenticate dev hub
7481 - name : ' Authenticate Dev Hub'
Original file line number Diff line number Diff line change @@ -58,12 +58,13 @@ jobs:
5858 needs : formatting-and-lwc-tests
5959 steps :
6060 # Install Salesforce CLI
61- - name : Install Salesforce CLI
61+ - name : ' Install Salesforce CLI'
6262 run : |
63- wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
64- mkdir sfdx-cli
65- tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-components 1
66- ./sfdx-cli/install
63+ wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
64+ mkdir ~/sfdx
65+ tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1
66+ echo "$HOME/sfdx/bin" >> $GITHUB_PATH
67+ ~/sfdx/bin/sfdx version
6768
6869 # Checkout the code in the pull request
6970 - name : ' Checkout source code'
Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 # Install Salesforce CLI
15- - name : Install Salesforce CLI
15+ - name : ' Install Salesforce CLI'
1616 run : |
17- wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
18- mkdir sfdx-cli
19- tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-components 1
20- ./sfdx-cli/install
17+ wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
18+ mkdir ~/sfdx
19+ tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1
20+ echo "$HOME/sfdx/bin" >> $GITHUB_PATH
21+ ~/sfdx/bin/sfdx version
2122
2223 # Checkout the code in the pull request
2324 - name : ' Checkout source code'
2627 # Store secret for dev hub
2728 - name : ' Populate auth file with DEVHUB_SFDX_URL secret'
2829 shell : bash
29- run : ' echo ${{ secrets.DEVHUB_SFDX_URL}} > ./DEVHUB_SFDX_URL.txt'
30+ run : |
31+ echo ${{ secrets.DEVHUB_SFDX_URL}} > ./DEVHUB_SFDX_URL.txt
32+ secretFileSize=$(wc -c "./DEVHUB_SFDX_URL.txt" | awk '{print $1}')
33+ if [ $secretFileSize == 1 ]; then
34+ echo "Missing DEVHUB_SFDX_URL secret. Is this workflow running on a fork?";
35+ exit 1;
36+ fi
3037
3138 # Authenticate dev hub
3239 - name : ' Authenticate Dev Hub'
Original file line number Diff line number Diff line change 11{
22 "name" : " sfdx-quiz" ,
3- "version" : " 2.6.1 " ,
3+ "version" : " 2.7.0 " ,
44 "private" : true ,
55 "description" : " Lightning Web Component Quiz App on a Salesforce Org" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 55 "default" : true ,
66 "package" : " Quiz" ,
77 "postInstallScript" : " QuizPostInstallScript" ,
8- "versionName" : " ver 2.6.1 " ,
9- "versionNumber" : " 2.6.1 .NEXT" ,
8+ "versionName" : " ver 2.7.0 " ,
9+ "versionNumber" : " 2.7.0 .NEXT" ,
1010 "ancestorVersion" : " 2.6.0.2"
1111 }
1212 ],
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default class GameApp extends LightningElement {
1414 isNextButtonDisabled = true ;
1515 currentQuestion ;
1616
17- HOST_APP_VERSION = '2.6.1 ' ;
17+ HOST_APP_VERSION = '2.7.0 ' ;
1818
1919 @wire ( getQuizSettings )
2020 wiredQuizSettings ( { error, data } ) {
You can’t perform that action at this time.
0 commit comments