-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 1.3 KB
/
convert_and_commit.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
35
36
name: Convert and Commit
on: push
jobs:
convert-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }} # Personal Access Token
ref: ${{ github.head_ref }} # Reference (branch/tag) for checkout
fetch-depth: 0 # Fetch entire commit history
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Run conversion scripts
run: |
bash scripts/convert_all.sh # Run conversion script
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Automated conversion of files [skip ci]" # Commit message with skip CI tag
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
branch: ${{ github.head_ref }} # Branch to commit changes