Skip to content

Commit

Permalink
task: Disable other workflows [DHIS2-18615]
Browse files Browse the repository at this point in the history
  • Loading branch information
muilpp committed Dec 13, 2024
1 parent 3731bab commit 8925412
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 29 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/analyse-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.DHIS2_BOT_SONARCLOUD_TOKEN }}
on:
push:
branches:
- master
- "2.3[1-9]"
- "2.4[0-9]"
pull_request:
branches:
- master
- "2.3[1-9]"
- "2.4[0-9]"
workflow_dispatch: # Only manual trigger, no automatic triggers
concurrency:
group: ${{ github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ env:
# This is to make sure Maven don't timeout fetching dependencies. See: https://github.com/actions/virtual-environments/issues/1499
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=125

on: [ pull_request ]
on:
workflow_dispatch: # Only manual trigger, no automatic triggers

jobs:
check-formatting:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=125

on:
pull_request:
branches:
- master
workflow_dispatch: # Only manual trigger, no automatic triggers
schedule:
- cron: "0 12 * * *"
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Dependabot auto-merge

on:
pull_request:
workflow_dispatch: # Only manual trigger, no automatic triggers

permissions:
pull-requests: write
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy-instance.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Deploy instance

on:
pull_request:
types: [opened, reopened, labeled, synchronize]
workflow_dispatch: # Only manual trigger, no automatic triggers

# Cancel previous runs of the same workflow and PR number or branch/tag
concurrency:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/destroy-instance.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Destroy instance

on:
pull_request:
types: [closed, unlabeled]
workflow_dispatch: # Only manual trigger, no automatic triggers

# Cancel previous runs of the same workflow and PR number or branch/tag
concurrency:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/run-api-analytics-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=125

on:
pull_request:
types: [opened, labeled, synchronize]
workflow_dispatch: # Only manual trigger, no automatic triggers
schedule:
- cron: "16 1 * * *" # Run at 01:16 AM
concurrency:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/run-api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ env:
MAVEN_OPTS: -Xmx1024m -Xms1024m -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=125

on:
push:
branches:
- master
pull_request:
workflow_dispatch: # Only manual trigger, no automatic triggers
concurrency:
group: ${{ github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ env:
# This is to make sure Maven don't timeout fetching dependencies. See: https://github.com/actions/virtual-environments/issues/1499
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=125
on:
push:
branches:
- master
pull_request:
workflow_dispatch: # Only manual trigger, no automatic triggers
concurrency:
group: ${{ github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down

0 comments on commit 8925412

Please sign in to comment.