Skip to content

Commit

Permalink
test list of changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jun 20, 2024
1 parent 32c6fe0 commit 3412922
Show file tree
Hide file tree
Showing 2 changed files with 1,105 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout book repo
uses: actions/checkout@v4
- name: Get changed notebooks
id: changed-files
uses: tj-actions/changed-files@v44
with:
repository: ecmwf-projects/c3s_eqc_book_main
files: |
**.ipynb
- name: Install jupyter-book
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test-env
create-args: >-
jupyter-book
- name: Checkout book repo
uses: actions/checkout@v4
with:
repository: ecmwf-projects/c3s_eqc_book_main
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
Loading

0 comments on commit 3412922

Please sign in to comment.