-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Massy Mahamli
committed
Nov 14, 2023
1 parent
9fdfcb8
commit 0b90d89
Showing
2 changed files
with
40 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: moving HTML file | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- github-actions | ||
|
||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-20.04 | ||
defaults: | ||
run: | ||
working-directory: _site | ||
steps: | ||
- name: build jekyll | ||
- run: bundle exec jekyll build | ||
changed_files: | ||
runs-on: ubuntu-latest # windows-latest || macos-latest | ||
name: Test changed-files | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. | ||
- name: Get changed files in the _site folder | ||
id: changed-files-specific | ||
uses: tj-actions/changed-files@v40 | ||
with: | ||
files: _site/reference-cai.html # Alternatively using: `docs/**` | ||
|
||
- name: Run step if the file has changed | ||
if: steps.changed-files-specific.outputs.any_changed == 'true' | ||
run: | | ||
echo "One or more files in the docs folder has changed." | ||
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}" | ||
steps: | ||