Skip to content

Commit 4535cb9

Browse files
Merge pull request #10 from gitautoai/wes
Fix an error: forge login failed 3
2 parents 1b91a93 + 92fab7d commit 4535cb9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches:
66
- main
77

8+
# Set Forge credentials
9+
# https://developer.atlassian.com/platform/forge/cli-reference/login/
10+
# https://developer.atlassian.com/platform/forge/set-up-cicd/#step-2--define-your-login-details-as-variables
11+
env:
12+
FORGE_EMAIL: ${{ secrets.FORGE_EMAIL }}
13+
FORGE_API_TOKEN: ${{ secrets.FORGE_API_TOKEN }}
14+
815
jobs:
916
deploy:
1017
runs-on: ubuntu-latest
@@ -33,12 +40,6 @@ jobs:
3340
- name: Enable Forge analytics
3441
run: forge settings set usage-analytics true
3542

36-
# Authenticate Forge CLI
37-
# https://developer.atlassian.com/platform/forge/cli-reference/login/
38-
# https://developer.atlassian.com/platform/forge/set-up-cicd/#step-2--define-your-login-details-as-variables
39-
- name: Authenticate Forge CLI
40-
run: forge login --email ${{ secrets.FORGE_EMAIL }} --token ${{ secrets.FORGE_API_TOKEN }} --non-interactive
41-
4243
# Run Forge lint
4344
- name: Run Forge lint
4445
run: forge lint --fix

0 commit comments

Comments
 (0)