Skip to content

Commit

Permalink
Fix an error: forge login failed 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Nov 27, 2024
1 parent 726726b commit 92fab7d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches:
- main

# Set Forge credentials
# https://developer.atlassian.com/platform/forge/cli-reference/login/
# https://developer.atlassian.com/platform/forge/set-up-cicd/#step-2--define-your-login-details-as-variables
env:
FORGE_EMAIL: ${{ secrets.FORGE_EMAIL }}
FORGE_API_TOKEN: ${{ secrets.FORGE_API_TOKEN }}

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,12 +40,6 @@ jobs:
- name: Enable Forge analytics
run: forge settings set usage-analytics true

# Authenticate Forge CLI
# https://developer.atlassian.com/platform/forge/cli-reference/login/
# https://developer.atlassian.com/platform/forge/set-up-cicd/#step-2--define-your-login-details-as-variables
- name: Authenticate Forge CLI
run: forge login --email ${{ secrets.FORGE_EMAIL }} --token ${{ secrets.FORGE_API_TOKEN }} --non-interactive

# Run Forge lint
- name: Run Forge lint
run: forge lint --fix
Expand Down

0 comments on commit 92fab7d

Please sign in to comment.