-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
41 lines (39 loc) · 1.1 KB
/
action.yml
File metadata and controls
41 lines (39 loc) · 1.1 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
name: 'Github Action Pilot'
description: 'Sync GitHub Actions workflows across repositories using git-pilot CLI'
author: 'Safeer S'
branding:
icon: 'repeat'
color: 'blue'
inputs:
token:
description: 'GitHub token to push changes'
required: true
values:
description: 'Path to the config YAML with repo/template settings'
required: true
template_dir:
description: 'Directory containing Jinja2 templates'
required: true
state_file:
description: 'Path to state file to track sync SHA'
required: false
default: '.git-pilot-state.json'
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install git-pilot CLI
shell: bash
run: pip install git-pilot==0.2.0
- name: Run git-pilot
shell: bash
run: |
git-pilot sync \
--provider github \
--token ${{ inputs.token }} \
--values ${{ inputs.values }} \
--template-dir ${{ inputs.template_dir }} \
--state-file ${{ inputs.state_file }} --non-interactive