mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
Squashed 'database/' changes from dd98e151..5df53219
5df53219 Add workflows and configuration for syncing and linting subtrees git-subtree-dir: database git-subtree-split: 5df53219e1f6143cee10c67da88317f0dcd00c2b
This commit is contained in:
parent
a3aa597dd5
commit
7ad9ab5dc6
1
.github/subtrees.json
vendored
Normal file
1
.github/subtrees.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
11
.github/superprojects.json
vendored
Normal file
11
.github/superprojects.json
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"usgs-coupled-subtrees/phreeqc3-database": {
|
||||||
|
"superprojects": [
|
||||||
|
"usgs-coupled-subtrees/iphreeqc",
|
||||||
|
"usgs-coupled-subtrees/iphreeqccom",
|
||||||
|
"usgs-coupled-subtrees/phreeqcrm",
|
||||||
|
"usgs-coupled-subtrees/phreeqc3",
|
||||||
|
"usgs-coupled-subtrees/wphast"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
19
.github/workflows/lint-subtrees.yml
vendored
Normal file
19
.github/workflows/lint-subtrees.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Lint subtrees.json
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/subtrees.json'
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-subtrees:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CI_SERVER_HOST: github.com
|
||||||
|
GROUP: usgs-coupled
|
||||||
|
steps:
|
||||||
|
- uses: usgs-coupled-subtrees/sync-subtrees-action/lint-subtrees/@main
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
20
.github/workflows/lint-superprojects.yml
vendored
Normal file
20
.github/workflows/lint-superprojects.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Lint superprojects.json
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/superprojects.json'
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-superprojects:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: usgs-coupled-subtrees/sync-subtrees-action/lint-superprojects/@main
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
# skip-repos: |
|
||||||
|
# - usgs-coupled-subtrees/iphreeqccom
|
||||||
|
# - usgs-coupled-subtrees/phreeqcrm-src
|
||||||
|
|
||||||
37
.github/workflows/subtree.yml
vendored
Normal file
37
.github/workflows/subtree.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: Sync Subtrees
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
dryRun:
|
||||||
|
description: 'If true, don’t push any changes (for testing only).'
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
testMerge:
|
||||||
|
description: 'Run in test mode, pushing to a test branch.'
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync-subtrees:
|
||||||
|
if: startsWith(github.repository, 'usgs-coupled-subtrees/')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CI_SERVER_HOST: github.com
|
||||||
|
GROUP: usgs-coupled
|
||||||
|
GH_TOKEN: ${{ secrets.WORKFLOW_PAT }}
|
||||||
|
steps:
|
||||||
|
- name: Run sync-subtrees-action
|
||||||
|
uses: usgs-coupled-subtrees/sync-subtrees-action@main
|
||||||
|
with:
|
||||||
|
dryRun: ${{ inputs.dryRun }}
|
||||||
|
testMerge: ${{ inputs.testMerge }}
|
||||||
|
repository_name: ${{ github.event.repository.name }}
|
||||||
|
default_branch: ${{ github.event.repository.default_branch }}
|
||||||
|
run_number: ${{ github.run_number }}
|
||||||
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
Loading…
x
Reference in New Issue
Block a user