-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.4 KB
/
fetch-logs.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
49
50
51
52
53
54
55
name: Fetch tinuous CI logs
on:
schedule:
- cron: '0 0 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v4
with:
path: tinuous-inception
- name: Checkout con/tinuous
uses: actions/checkout@v4
with:
repository: con/tinuous
path: tinuous
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '^3.8'
- name: Install tinuous dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install ./tinuous
- name: Run tinuous
run: tinuous fetch
working-directory: tinuous-inception
env:
GITHUB_TOKEN: ${{ secrets.DANDIBOT_GITHUB_TOKEN }}
TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }}
APPVEYOR_TOKEN: ${{ secrets.APPVEYOR_TOKEN }}
CIRCLECI_CLI_TOKEN: ${{ secrets.CIRCLECI_CLI_TOKEN }}
- name: Commit & push
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add --all
if ! git diff --quiet --cached
then git commit -m 'Ran tinuous'
git push
else echo "No changes to commit"
fi
working-directory: tinuous-inception
# vim:set sts=2: