Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeier authored Oct 19, 2024
1 parent f976d60 commit 7e5d625
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ jobs:
aws-region: us-east-1
role-session-name: GitHub-OIDC-frontend

# Step 3: Check if there are changes in the `staticSite` branch
# Step 3: Check if there are changes in the current branch
- name: Check for changes in `staticSite`
id: changes
run: |
git fetch origin staticSite
git diff --exit-code HEAD^ HEAD -- ./website || echo "Changes detected"
continue-on-error: true # This ensures the workflow continues if there are changes
git diff --exit-code HEAD -- ./website || echo "Changes detected"
continue-on-error: true # Ensure the workflow continues if changes are detected


# Step 4: Sync files to S3 for static website hosting only if there are changes
- name: Sync files to S3 if changes detected
Expand Down

0 comments on commit 7e5d625

Please sign in to comment.