Update generate_cve_json.yml

This commit is contained in:
Marc 2024-05-27 15:42:49 +02:00 committed by GitHub
parent 23d02b7db0
commit e5b0630939
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,9 +5,6 @@ on:
push: # This will run the workflow on every push push: # This will run the workflow on every push
branches: branches:
- main # Adjust this if you want to run on other branches as well - main # Adjust this if you want to run on other branches as well
schedule:
- cron: '0 0 * * *' # This will run the workflow every day at midnight UTC
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -34,7 +31,7 @@ jobs:
git config --global user.email 'marc@codepwn.win' git config --global user.email 'marc@codepwn.win'
git remote set-url origin https://github-actions[bot]:$GITHUB_TOKEN@github.com/0xMarcio/cve.git git remote set-url origin https://github-actions[bot]:$GITHUB_TOKEN@github.com/0xMarcio/cve.git
git add . git add .
git commit -m 'Update CVE list JSON' git commit -m "Update CVE list `date +"%Y-%m-%d %H:%M:%S"`"
git push origin main git push origin main
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}