Skip to content

Commit

Permalink
test gha
Browse files Browse the repository at this point in the history
  • Loading branch information
wpiet committed Aug 7, 2024
1 parent 65d5b78 commit 3050789
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
##

name: Deploy Site
on: push
Expand All @@ -29,12 +29,13 @@ jobs:
- uses: actions/checkout@v3
with:
ref: master
fetch-depth: 2

- name: Check For Content Changes
run: |
latest_commit=$(git rev-parse HEAD)
previous_commit=$(git rev-parse HEAD~1)
content_changed=$(git diff --name-only $previous_commit $latest_commit | grep -E '\.(html|css|js|py|md|rst)$')
content_changed=$(git diff --name-only $previous_commit $latest_commit | grep -E '\.(html|css|js|py|md|rst)$') || true
if [ -z "$content_changed" ]; then
echo "No relevant changes detected."
Expand Down

0 comments on commit 3050789

Please sign in to comment.