Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ittuann committed Jul 6, 2024
1 parent 84f2993 commit 93807b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: [main]
schedule:
- cron: "0 2 * * 1"
workflow_dispatch:

jobs:
update-hosts:
Expand Down Expand Up @@ -45,6 +46,7 @@ jobs:
run: poetry run python ./Scripts/main.py --is_in_gha true

- name: Auto Commit
if: github.event_name != 'pull_request'
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
Expand All @@ -53,6 +55,7 @@ jobs:
git commit -m "Auto update hosts ($CURRENT_TIME UTC+8)"
- name: Push changes
if: github.event_name != 'pull_request'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 93807b9

Please sign in to comment.