Skip to content

Commit

Permalink
Feature: solve the problem of no updated content but still pushing (#2)
Browse files Browse the repository at this point in the history
* solve the problem of no updated content but still pushing 

---------

Co-authored-by: zengzzzzz <[email protected]>
  • Loading branch information
zengzzzzz and zengzzzzz authored Oct 13, 2023
1 parent 7dafe0c commit 74f01f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@ jobs:
- name: Run Scraper
run: |
python scraper.py
- name: Check for changes
id: git-status
run: |
git diff --exit-code || echo "::set-output name=changed::true"
continue-on-error: true

# Runs a set of commands using the runners shell
- name: Push to origin master
if: steps.git-status.outputs.changed == 'true'
run: |
echo start push
git config --global user.name "aneasystone"
Expand Down

0 comments on commit 74f01f7

Please sign in to comment.