File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11name : Deploy Forge App to Jira
22
33on :
4+ pull_request :
5+ branches :
6+ - main
47 push :
58 branches :
69 - main
4750 # Deploy Forge App
4851 # https://developer.atlassian.com/platform/forge/staging-and-production-apps/#deploy-to-a-specific-environment
4952 - name : Deploy Forge App
50- run : forge deploy -e production
53+ run : |
54+ if [ "${{ github.event_name }}" == "push" ]; then
55+ forge deploy -e production
56+ else
57+ forge deploy -e staging
58+ fi
59+
60+ # Install Forge app dependencies
61+ # https://developer.atlassian.com/platform/forge/cli-reference/install/
62+ - name : Install Forge dependencies
63+ if : github.event_name == 'pull_request'
64+ run : forge install -e staging -s gitauto.atlassian.net --p Jira --upgrade --confirm-scopes --non-interactive --verbose
You can’t perform that action at this time.
0 commit comments