-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (42 loc) · 1.48 KB
/
cron.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
on:
push:
schedule:
- cron: "0,30 * * * *"
name: "cron for updates"
jobs:
update-cci-fork:
name: "Update CCI fork"
runs-on: ubuntu-22.04
if: github.event_name != 'push' || github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: "Update CCI fork with upstream changes"
env:
GIT_GITHUB_USERNAME: ${{ secrets.GIT_GITHUB_USERNAME }}
GIT_GITHUB_TOKEN: ${{ secrets.GIT_GITHUB_TOKEN }}
GIT_GITHUB_FORK_ACCOUNT: "bincrafters"
run: |
chmod +x ./cci/update_from_upstream.sh
source ./cci/update_from_upstream.sh
# run-conventions-for-bincrafters:
# name: "Run Conventions for Bincrafters"
# runs-on: ubuntu-22.04
# if: github.event_name != 'push' && github.repository_owner == 'bincrafters'
# steps:
# - uses: actions/setup-python@v5
# with:
# python-version: "3.11"
# - name: "Run Conventions"
# env:
# GIT_GITHUB_USERNAME: ${{ secrets.GIT_GITHUB_USERNAME }}
# GIT_GITHUB_TOKEN: ${{ secrets.GIT_GITHUB_TOKEN }}
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "bincrafters-user"
# pip install --quiet bincrafters-conventions
# bincrafters-conventions --remote bincrafters --remote-max-repos 1 --remote-token="${GIT_GITHUB_USERNAME}:${GIT_GITHUB_TOKEN}";