Skip to content

Commit 2ed33e8

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/lwc/eslint-plugin-lwc-2.1.0
2 parents 40ebd12 + 7833dd1 commit 2ed33e8

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

.github/actions/authenticateOrg/action.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,24 @@ runs:
3131
echo "${yellow}${bold}Authenticate org 🔒${reset}"
3232
echo "${yellow}${bold}------------------------------------------------------------------------------------------${reset}"
3333
34-
command=(sf org login sfdx-url --sfdx-url-stdin --alias ${ALIAS})
34+
command=(sf org login sfdx-url --sfdx-url-stdin --json --alias ${ALIAS})
3535
36-
if [ "${SET_DEFAULT_USERNAME}" == "true" ];
37-
then
38-
command+=(--set-default)
36+
if [ "${SET_DEFAULT_USERNAME}" == "true" ]; then
37+
command+=(--set-default)
3938
fi
4039
41-
if [ "${SET_DEFAULT_DEVHUB_USERNAME}" == "true" ];
42-
then
43-
command+=(--set-default-dev-hub)
40+
if [ "${SET_DEFAULT_DEVHUB_USERNAME}" == "true" ]; then
41+
command+=(--set-default-dev-hub)
4442
fi
4543
46-
command+=(--json)
44+
echo "${AUTH_URL}" | "${command[@]}" > loginResult.json
4745
48-
echo "${AUTH_URL}" | "${command[@]}" > loginResult.json
49-
50-
if [ "$(jq .status loginResult.json)" -eq 1 ];
51-
then
52-
echo "::error title=Failed to authenticate::$(jq .message loginResult.json)"
53-
rm -f ./loginResult.json
54-
exit 1
46+
if [ "$(jq .status loginResult.json)" -eq 1 ]; then
47+
echo "::error title=Failed to authenticate::$(jq .message loginResult.json)"
48+
rm -f ./loginResult.json
49+
exit 1
5550
else
56-
echo "${green}${bold}Authenticate org successful.${reset}"
51+
echo "${green}${bold}Authenticate org successful.${reset}"
5752
fi
5853
5954
echo "${yellow}${bold}------------------------------------------------------------------------------------------${reset}"

.github/workflows/buildAndPublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
registry-url: "https://npm.pkg.github.com"
103103

104104
- name: Authenticate DevHub
105-
uses: navikt/sf-platform/.github/actions/authenticateOrg@f318a266c5a7add9c091f9d3480164fed8abfc08
105+
uses: navikt/sf-platform/.github/actions/authenticateOrg@a0f22eb5d1c9d1ec5e345c04c96a786bd150042a
106106
with:
107107
auth-url: ${{ secrets.SF_DEVHUB_URL }}
108108
alias: "devhub"

.github/workflows/ciCreatePlatformPool.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
version: ${{ vars.SF_CLI_VERSION }}
4949

5050
- name: "Authenticate Dev Hub"
51-
uses: navikt/sf-platform/.github/actions/authenticateOrg@f318a266c5a7add9c091f9d3480164fed8abfc08
51+
uses: navikt/sf-platform/.github/actions/authenticateOrg@a0f22eb5d1c9d1ec5e345c04c96a786bd150042a
5252
with:
5353
auth-url: ${{ secrets.SF_DEVHUB_URL }}
5454
alias: devhub
@@ -140,7 +140,7 @@ jobs:
140140
CLEAR_POOLS: ${{ inputs.clearPools }}
141141

142142
- name: "Authenticate Dev Hub"
143-
uses: navikt/sf-platform/.github/actions/authenticateOrg@f318a266c5a7add9c091f9d3480164fed8abfc08
143+
uses: navikt/sf-platform/.github/actions/authenticateOrg@a0f22eb5d1c9d1ec5e345c04c96a786bd150042a
144144
with:
145145
auth-url: ${{ secrets.SF_DEVHUB_URL }}
146146
alias: devhub

0 commit comments

Comments
 (0)