File tree Expand file tree Collapse file tree 5 files changed +80
-0
lines changed
Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ []
Original file line number Diff line number Diff line change 1+ {
2+ "usgs-coupled-subtrees/mmf" : {
3+ "superprojects" : [
4+ " usgs-coupled-subtrees/webmod"
5+ ]
6+ }
7+ }
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments