Charlton, Scott R. 4a0e162b91 Add workflows and configuration for syncing and linting subtrees
- Created .github/subtrees.json to define subtree repositories.
- Added linting workflow for subtrees.json in .github/workflows/lint-subtrees.yml.
- Implemented sync workflow for subtrees in .github/workflows/subtree.yml.
- Created subtrees.json and superprojects.json files in database, examples/c, examples/com, and examples/fortran directories.
- Added linting workflows for subtrees.json and superprojects.json in respective directories.
- Established sync workflows for subtrees in examples/c, examples/com, examples/fortran, and src directories.
- Configured subtrees.json and superprojects.json for src and src/phreeqcpp directories.
- Implemented linting workflows for subtrees.json and superprojects.json in src and src/phreeqcpp directories.
- Added common superprojects.json in src/phreeqcpp/common directory.
2025-08-06 16:46:25 -06:00

38 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Sync Subtrees
on:
push:
branches:
- master
workflow_dispatch:
inputs:
dryRun:
description: 'If true, dont 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 }}