From b5d385928195b8cf26c7dd71b9e008077280dd02 Mon Sep 17 00:00:00 2001 From: AdySec <133128400+adysec@users.noreply.github.com> Date: Thu, 6 Jun 2024 18:19:39 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..eb9b031 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "$(date +'%Y%m%d')" + git push -v --progress