fix: test combination #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Advisory | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' # Run every day at midnight | |
| jobs: | |
| update-versions: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.21' | |
| - name: Run Go application | |
| run: | | |
| go build -o update-advisory main.go | |
| ./update-advisory | |
| rm ./update-advisory | |
| working-directory: ./src | |
| - name: Commit changes | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com"2 | |
| git add ./advisories/V8-advisory.json | |
| git add ./src/V8-cache.json | |
| git commit3 -m "Update advisories/V8_advisory.json and src/V8-cache.json" | |
| git push |