From 64d3b6e6baf01973738ee272c79cef8c74e01d89 Mon Sep 17 00:00:00 2001 From: Deepak Bomjan Date: Thu, 14 Sep 2023 11:50:02 +0545 Subject: [PATCH] ci: check changed-files in subdirectory --- .github/workflows/bump-version.yml | 40 +++++++++++++++++++ .../main/java/ibc/ics02/client/IBCClient.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/bump-version.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 000000000..0020236f6 --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,40 @@ +name: Changed-files + +on: + push: + branches: + - '**' + +jobs: + changed_files: + runs-on: ubuntu-latest + name: Test changed-files + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Get javascore files that have changed + id: changed-files-javascore + uses: tj-actions/changed-files@v39 + working-directory: contracts/javascore + with: + files_yaml: | + ibc: + - 'ibc/**' + lightclients: + - lightclients/** + xcall-connection: + - xcall-connection/** + + - name: Run step if test file(s) change + if: steps.changed-files-javascore.outputs.ibc_any_changed == 'true' + run: | + echo "One or more test file(s) has changed." + echo "List all the files that have changed: ${{ steps.changed-files-javascore.outputs.ibc_all_changed_files }}" + + - name: Run step if doc file(s) change + if: steps.changed-files-javascore.outputs.lightclients_any_changed == 'true' + run: | + echo "One or more doc file(s) has changed." + echo "List all the files that have changed: ${{ steps.changed-files-javascore.outputs.lightclients_all_changed_files }}" diff --git a/contracts/javascore/ibc/src/main/java/ibc/ics02/client/IBCClient.java b/contracts/javascore/ibc/src/main/java/ibc/ics02/client/IBCClient.java index 566ba26f2..77f08d5e2 100644 --- a/contracts/javascore/ibc/src/main/java/ibc/ics02/client/IBCClient.java +++ b/contracts/javascore/ibc/src/main/java/ibc/ics02/client/IBCClient.java @@ -1,3 +1,4 @@ +// Temporary comment package ibc.ics02.client; import ibc.icon.interfaces.ILightClient;