Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adysec authored Jun 6, 2024
1 parent 29f8147 commit b5d3859
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Daily Update HackerOne Src Asset

on:
push:
branches:
- main
schedule:
- cron: '0 12 * * *'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Requests
run: pip install -r requirements.txt

- name: Update HackerOne Src Asset
run: python h1_asset.py

- name: Commit and Push changes
run: |
echo $(date +'%Y%m%d') > date.txt
git add .
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "$(date +'%Y%m%d')"
git push -v --progress

0 comments on commit b5d3859

Please sign in to comment.