-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.21 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
name: Build rules
on:
push:
branches:
- master
- develop
paths:
- '.github/workflows/build.yml'
- 'build/*'
- 'rules.txt'
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'RyuaNerin/hide-online-marketplace' && github.event.head_commit.author.email != '[email protected]'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: 'build/requirements.txt'
- name: Install dependencies
run: pip install -r build/requirements.txt
- name: Build
run: python build/build.py
- name: Commit
run: |
git add filter.txt
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Build rules" -a
- name: Push to protected branch
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
branch: master
unprotect_reviews: true