-
Notifications
You must be signed in to change notification settings - Fork 19
40 lines (34 loc) · 1002 Bytes
/
main.yml
File metadata and controls
40 lines (34 loc) · 1002 Bytes
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
name: Syncing Your Cabin
on:
push:
branches:
- null
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python Environment
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Getting Filenames
run: |
python .bit/scripts/start.py
- name: Getting Descriptions
run: |
python .bit/scripts/parse.py
- name: Creating Config Files
run: |
python .bit/scripts/create.py
- name: Setup Git Config
if: ${{github.event.head_commit.message != 'Initial commit'}}
run: |
git config user.name ${{ secrets.USERNAME }}
git config user.email ${{ secrets.EMAIL }}
- name: Commit Synced Changes
if: ${{github.event.head_commit.message != 'Initial commit'}}
run: |
chmod +x .bit/scripts/commit.sh
.bit/scripts/commit.sh