Skip to content

Commit

Permalink
trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcguin committed May 14, 2024
1 parent 628236b commit 68df998
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,24 @@ jobs:
sites:
- 'sites/**/*'
# helper to extract the sites that were modified
# input_string="/home/sites/my-site/src/index.html"; echo "${input_string#*/sites/}" | cut -d'/' -f1
# run only if some file in 'src' folder was changed
# - if: steps.files_changed.outputs.src == 'true'
# run: ...
- name: Build Matrix
id: sites-matrix
run: |
for i in ${{ steps.changed-files-specific.outputs.all_changed_files }}; do \
sites="${i#*/sites/}" | cut -d'/' -f1; \
echo SITES="${sites}" >> $GITHUB_OUTPUT; \
done
- name: List Changed Files
run: |
echo "Changed lib files: ${{ steps.files_changed.outputs.lib_files }}"
echo "Changed sites files: ${{ steps.files_changed.outputs.sites_files }}"
echo "Sites Matrix: ${{ steps.sites-matrix.outputs.sites_files }}"
# Run a build step here if your project requires
# - name: Publish to Cloudflare Pages
Expand Down
2 changes: 1 addition & 1 deletion sites/eighth-light/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import LayoutDefault from '@unicorn/common/src/layouts/layout.astro'
<LayoutDefault>
<section>
<p class="mb-2">
8th Light Cover Letter
8th Light Cover Letter!
</p>
</section>
</LayoutDefault>

0 comments on commit 68df998

Please sign in to comment.