-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 1.03 KB
/
pilot.yml
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
name: Doc-Pilot
on: [push, pull_request, workflow_dispatch, workflow_call]
permissions:
contents: write
jobs:
add-docstring:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️ ${{ github.event.repository.name }}
uses: actions/checkout@v4
with:
path: DoCPilot
persist-credentials: false
submodules: "recursive"
set-safe-directory: false
- name: Get changed files
id: changed-files
run: |
if ${{ github.event_name == 'pull_request' }}; then
echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
else
echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
fi
- name: Run Claude Script
run: |
echo "claude magic"
- name: Cleanup Process
run: |
echo "We have now run cleanup"