Skip to content

Commit

Permalink
ci: check changed-files in subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Sep 14, 2023
1 parent b259f4b commit 64d3b6e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Temporary comment
package ibc.ics02.client;

import ibc.icon.interfaces.ILightClient;
Expand Down

0 comments on commit 64d3b6e

Please sign in to comment.