Skip to content

Commit

Permalink
Update docs-freeze.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorelli25 authored Jan 14, 2025
1 parent d6e7dab commit fe9584d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docs-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # This is important to fetch all history

- name: Check for changes in .asciidoc files
id: check-files
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E '\.asciidoc$'; then
git fetch origin ${{ github.base_ref }}
if git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -E '\.asciidoc$'; then
echo "asciidoc_changed=true" >> $GITHUB_ENV
else
echo "asciidoc_changed=false" >> $GITHUB_ENV
Expand Down

0 comments on commit fe9584d

Please sign in to comment.