Skip to content

Commit c6b8d2a

Browse files
Merge commit '149bab907f697e7722f9e5e176b4451adf78da70'
2 parents a6aea4e + 149bab9 commit c6b8d2a

File tree

5 files changed

+80
-0
lines changed

5 files changed

+80
-0
lines changed

mmf_c/src/.github/subtrees.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"usgs-coupled-subtrees/mmf": {
3+
"superprojects": [
4+
"usgs-coupled-subtrees/webmod"
5+
]
6+
}
7+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint subtrees.json
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/subtrees.json'
7+
workflow_call:
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint-subtrees:
12+
runs-on: ubuntu-latest
13+
env:
14+
CI_SERVER_HOST: github.com
15+
GROUP: usgs-coupled
16+
steps:
17+
- uses: usgs-coupled-subtrees/sync-subtrees-action/lint-subtrees/@main
18+
with:
19+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lint superprojects.json
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/superprojects.json'
7+
workflow_call:
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint-superprojects:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: usgs-coupled-subtrees/sync-subtrees-action/lint-superprojects/@main
15+
with:
16+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Sync Subtrees
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
inputs:
9+
dryRun:
10+
description: 'If true, don’t push any changes (for testing only).'
11+
required: true
12+
default: false
13+
type: boolean
14+
testMerge:
15+
description: 'Run in test mode, pushing to a test branch.'
16+
required: true
17+
default: false
18+
type: boolean
19+
20+
jobs:
21+
sync-subtrees:
22+
if: startsWith(github.repository, 'usgs-coupled-subtrees/')
23+
runs-on: ubuntu-latest
24+
env:
25+
CI_SERVER_HOST: github.com
26+
GROUP: usgs-coupled
27+
GH_TOKEN: ${{ secrets.WORKFLOW_PAT }}
28+
steps:
29+
- name: Run sync-subtrees-action
30+
uses: usgs-coupled-subtrees/sync-subtrees-action@main
31+
with:
32+
dryRun: ${{ inputs.dryRun }}
33+
testMerge: ${{ inputs.testMerge }}
34+
repository_name: ${{ github.event.repository.name }}
35+
default_branch: ${{ github.event.repository.default_branch }}
36+
run_number: ${{ github.run_number }}
37+
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)