-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
64 lines (62 loc) · 1.94 KB
/
Copy pathaction.yaml
File metadata and controls
64 lines (62 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Sync Changelog
description: Trigger changelog sync to tenzir/news
inputs:
project:
description: >-
Project name (usually not needed - defaults to source repo name)
required: false
default: ${{ github.event.repository.name }}
source_repo:
description: >-
Repository to clone the changelog from (defaults to the calling repo)
required: false
default: ${{ github.event.repository.name }}
source_ref:
description: Full commit SHA to synchronize (defaults to the source's HEAD)
required: false
default: ""
target:
description: Target directory name in news repo (defaults to project name)
required: false
default: ""
path:
description: Path to changelog in source repo
required: false
default: changelog
extra_paths:
description: Additional paths to sync (space-separated)
required: false
default: ""
skip_notifications:
description: Skip Discord notifications (for initial imports)
required: false
default: "false"
token:
description: GitHub token with workflow trigger permissions
required: true
target_repo:
description: Target repository to sync to
required: false
default: tenzir/news
ref:
description: Branch to trigger the workflow on
required: false
default: main
runs:
using: composite
steps:
- name: Trigger sync workflow
shell: bash
env:
GH_TOKEN: ${{ inputs.token }}
run: |
gh workflow run sync.yaml \
--repo "${{ inputs.target_repo }}" \
--ref "${{ inputs.ref }}" \
--field project="${{ inputs.project }}" \
--field source_repo="${{ inputs.source_repo }}" \
--field source_ref="${{ inputs.source_ref }}" \
--field target="${{ inputs.target }}" \
--field path="${{ inputs.path }}" \
--field extra_paths="${{ inputs.extra_paths }}" \
--field skip_notifications="${{ inputs.skip_notifications }}"