Skip to content

Commit

Permalink
ci: save page since last pushed commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Lord committed Feb 9, 2024
1 parent 087541c commit 1dd8e70
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
name: Save posts to Wayback Machine
runs-on: ubuntu-latest
needs: deploy
if: github.event_name != 'workflow_dispatch'
if: github.event_name != 'workflow_dispatch'
steps:
# setup python
- name: Set up Python
Expand All @@ -88,19 +88,17 @@ jobs:
# find all modified files under `_posts` folder
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Find modified posts
id: changed-posts
uses: tj-actions/changed-files@v42
with:
json: true
files: |
_posts/*.md
fetch_depth: 5
quotepath: false
safe_output: false
escape_json: false
since_last_remote_commit: true
# use all_changed_files
- name: Save Page
if: steps.changed-posts.outputs.all_changed_files != '[]' && steps.changed-posts.outputs.all_changed_files != ''
Expand Down

0 comments on commit 1dd8e70

Please sign in to comment.