Skip to content

Commit 32e3cb3

Browse files
seismanweiji14
andauthored
CI: Configure workflows to run on 'workflow_dispatch' event (#3133)
Co-authored-by: Wei Ji <[email protected]>
1 parent dd8e0cd commit 32e3cb3

File tree

7 files changed

+17
-6
lines changed

7 files changed

+17
-6
lines changed

.github/workflows/cache_data.yaml

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Cache GMT remote data files and upload as artifacts
22
#
3-
# This workflow downloads data files needed by PyGMT tests/documentation from
4-
# the GMT data server and uploads as workflow artifacts which can be accessed
5-
# by other GitHub Actions workflows.
3+
# This workflow downloads data files needed by PyGMT tests/documentation from the GMT
4+
# data server and uploads them as workflow artifacts, which can then be accessed by other
5+
# GitHub Actions workflows.
66
#
7-
# It is scheduled to run every Sunday at 12:00 (UTC). If new remote files are
8-
# needed urgently, maintainers can update the workflow file or the
9-
# 'pygmt/helpers/caching.py' file to refresh the cache.
7+
# It is scheduled to run every Sunday at 12:00 (UTC). If new remote files are needed
8+
# urgently, maintainers can refresh the cache by one of the following methods:
9+
#
10+
# 1. Update this workflow file
11+
# 2. Update the `pygmt/helpers/caching.py` file
12+
# 3. Go to https://github.com/GenericMappingTools/pygmt/actions/workflows/cache_data.yaml
13+
# and click the "Run workflow" button
1014
#
1115
name: Cache data
1216

@@ -16,6 +20,7 @@ on:
1620
paths:
1721
- 'pygmt/helpers/caching.py'
1822
- '.github/workflows/cache_data.yaml'
23+
workflow_dispatch:
1924
# Schedule runs on 12 noon every Sunday
2025
schedule:
2126
- cron: '0 12 * * 0'

.github/workflows/check-links.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ name: Check Links
1010
on:
1111
# Uncomment the 'pull_request' line below to trigger the workflow in PR
1212
# pull_request:
13+
workflow_dispatch:
1314
# Schedule runs on 12 noon every Sunday
1415
schedule:
1516
- cron: '0 12 * * 0'

.github/workflows/ci_docs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ on:
3434
- 'examples/**'
3535
- 'README.md'
3636
- '.github/workflows/ci_docs.yml'
37+
workflow_dispatch:
3738
release:
3839
types:
3940
- published

.github/workflows/ci_doctests.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
# push:
1010
# branches: [ main ]
1111
# pull_request:
12+
workflow_dispatch:
1213
# Schedule weekly tests on Sunday
1314
schedule:
1415
- cron: '0 0 * * 0'

.github/workflows/ci_tests.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ on:
3333
paths:
3434
- 'pygmt/**'
3535
- '.github/workflows/ci_tests.yaml'
36+
workflow_dispatch:
3637
release:
3738
types:
3839
- published

.github/workflows/ci_tests_dev.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
paths:
2121
- 'pygmt/**'
2222
- '.github/workflows/ci_tests_dev.yaml'
23+
workflow_dispatch:
2324
# Schedule tests on Monday/Wednesday/Friday
2425
schedule:
2526
- cron: '0 0 * * 1,3,5'

.github/workflows/ci_tests_legacy.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
# paths:
1818
# - 'pygmt/**'
1919
# - '.github/workflows/ci_tests_legacy.yaml'
20+
workflow_dispatch:
2021
# Schedule tests on Tuesday
2122
schedule:
2223
- cron: '0 0 * * 2'

0 commit comments

Comments
 (0)