-
Notifications
You must be signed in to change notification settings - Fork 35
41 lines (38 loc) · 1.5 KB
/
trigger-site-rebuild.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
name: Trigger site rebuild
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps: [
{
name: 'Skip based on commit message',
uses: veggiemonk/[email protected],
env: {
COMMIT_FILTER: 'skip-ci'
}
},
{ name: 'Checkout Code', uses: actions/checkout@v2 },
{
name: 'Lint Code Base',
uses: 'github/super-linter@v4',
env: {
VALIDATE_ALL_CODEBASE: false,
DEFAULT_BRANCH: 'master',
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
}
},
{ name: 'Install Python', uses: actions/setup-python@v4, with: { python-version: 3.10.5, architecture: x64 } },
{ name: 'Install Requests', run: 'pip install --user requests' },
{ name: 'Update dates', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} dates' },
{ name: 'Update stars', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} starcount' },
{ name: 'Commit changes', run: 'python update.py --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} commit' },
{
name: 'Repository dispatch',
uses: defold/[email protected],
with: {
repo: 'defold/defold.github.io',
token: '${{ secrets.SERVICES_GITHUB_TOKEN }}',
user: '[email protected]',
action: 'asset-portal'
}
}]