Skip to content

Commit

Permalink
πŸ™ More rigorous commit checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ShafSpecs committed Jan 26, 2024
1 parent 6897ec8 commit e7528b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
wait-and-trigger:
runs-on: ubuntu-latest
steps:
- name: βœ… Checkout code
uses: actions/checkout@v4

- uses: actions/checkout@v4
- name: πŸ”Ÿ Wait for 10 seconds
run: sleep 10

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/sync-s3-posts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: πŸ›‘οΈ Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -21,7 +22,19 @@ jobs:
- name: ⚑ Generate docs metadata
run: npm run generate:metadata

- name: 🏁 Check for changes
id: git-check
run: |
if git diff HEAD^ HEAD -- posts/; then
echo "No changes detected."
echo "::set-output name=changes::false"
else
echo "Changes detected."
echo "::set-output name=changes::true"
fi
- name: πŸͺ£ Sync to S3
if: steps.git-check.outputs.changes == 'true'
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
Expand Down

0 comments on commit e7528b0

Please sign in to comment.