-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (36 loc) · 1.03 KB
/
update_advisory.yml
File metadata and controls
40 lines (36 loc) · 1.03 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
name: Update Advisory
permissions:
contents: write
on:
push:
branches: [ main ]
paths-ignore:
- 'advisories/**'
- 'docs/**'
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run every day at midnight
jobs:
update-versions:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: '1.24.1'
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run tests
run: go test -v ./src/...
continue-on-error: false
- name: Run Go application
run: |
go run src/main.go
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ./advisories/V8-advisory.json
git add ./src/V8-cache.json
git commit -m "Update advisories/V8_advisory.json and src/V8-cache.json"
git push