Squashed 'phreeqc3-examples/' changes from 1dbd65fc..6baa6075

6baa6075 Add workflows and configuration for syncing and linting subtrees

git-subtree-dir: phreeqc3-examples
git-subtree-split: 6baa60752980bb9647c76f946256341b16fb9ca8
This commit is contained in:
github-actions[bot] 2025-08-06 22:48:19 +00:00
parent 402dc2ec9b
commit 275553971d
3 changed files with 57 additions and 0 deletions

1
.github/subtrees.json vendored Normal file
View File

@ -0,0 +1 @@
[]

19
.github/workflows/lint-subtrees.yml vendored Normal file
View 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 }}

37
.github/workflows/subtree.yml vendored Normal file
View File

@ -0,0 +1,37 @@
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 }}