Skip to content

Commit 726726b

Browse files
committed
Fix an error: forge login failed 2
1 parent 246bd29 commit 726726b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
steps:
1313
# Checkout the repository
1414
- name: Checkout code
15-
uses: actions/checkout@v4 # https://github.com/actions/checkout
15+
uses: actions/checkout@v4 # https://github.com/actions/checkout
1616

1717
# Set up Node.js
1818
- name: Set up Node.js
19-
uses: actions/setup-node@v4 # https://github.com/actions/setup-node
19+
uses: actions/setup-node@v4 # https://github.com/actions/setup-node
2020
with:
2121
node-version: "20" # https://nodejs.org/en
2222

@@ -28,17 +28,17 @@ jobs:
2828
- name: Install Forge CLI
2929
run: npm install -g @forge/cli
3030

31+
# Enable Forge analytics
32+
# https://developer.atlassian.com/platform/forge/set-up-cicd/#understanding-usage-analytics
33+
- name: Enable Forge analytics
34+
run: forge settings set usage-analytics true
35+
3136
# Authenticate Forge CLI
3237
# https://developer.atlassian.com/platform/forge/cli-reference/login/
3338
# https://developer.atlassian.com/platform/forge/set-up-cicd/#step-2--define-your-login-details-as-variables
3439
- name: Authenticate Forge CLI
3540
run: forge login --email ${{ secrets.FORGE_EMAIL }} --token ${{ secrets.FORGE_API_TOKEN }} --non-interactive
3641

37-
# Enable Forge analytics
38-
# https://developer.atlassian.com/platform/forge/set-up-cicd/#understanding-usage-analytics
39-
- name: Enable Forge analytics
40-
run: forge settings set usage-analytics true
41-
4242
# Run Forge lint
4343
- name: Run Forge lint
4444
run: forge lint --fix

0 commit comments

Comments
 (0)