mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
5df53219 Add workflows and configuration for syncing and linting subtrees git-subtree-dir: database git-subtree-split: 5df53219e1f6143cee10c67da88317f0dcd00c2b
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
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 }}
|