-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.3 KB
/
main.yml
File metadata and controls
48 lines (40 loc) · 1.3 KB
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: Generate Snapshot
on:
push:
branches: [ main ]
schedule:
- cron: "5 0 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
cache: true
cache-dependency-path: go.sum
- name: Install dependencies
run: go mod tidy
- name: Generate snapshot images
run: go run ./main.go
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXCLUDED_REPOS: ${{ secrets.EXCLUDED_REPOS }}
EXCLUDED_LANGS: ${{ secrets.EXCLUDED_LANGS }}
INCLUDE_FORKED_REPOS: ${{ secrets.INCLUDE_FORKED_REPOS || 'false' }}
INCLUDE_EXTERNAL_REPOS: ${{ secrets.INCLUDE_EXTERNAL_REPOS || 'false' }}
INCLUDE_PROFILE_VIEWS: ${{ secrets.INCLUDE_PROFILE_VIEWS || 'false' }}
- name: Commit to the repo
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'feat: updated snapshot images'
file_pattern: generated/*
commit_user_name: github-actions[bot]
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_author: Author <actions@github.com>