diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b4215ba..e2631be 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,7 +31,12 @@ jobs: echo "run_build_windows=true" >> $GITHUB_OUTPUT break fi - if [[ $added_modified_file == "src/"* ]]; then + if [[ $added_modified_file == "src/net/"* ]]; then + echo "$added_modified_file file is under the directory 'src/'." + echo "run_build_windows=true" >> $GITHUB_OUTPUT + break + fi + if [[ $added_modified_file == "test/"* ]]; then echo "$added_modified_file file is under the directory 'src/'." echo "run_build_windows=true" >> $GITHUB_OUTPUT break diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c4aac7f..faa1765 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -37,7 +37,12 @@ jobs: run: | mapfile -d ',' -t added_modified_files < <(printf '%s,' '${{ steps.get_changed_files.outputs.added_modified }}') for added_modified_file in "${added_modified_files[@]}"; do - if [[ $added_modified_file == "src/"* ]]; then + if [[ $added_modified_file == "src/net/"* ]]; then + echo "$added_modified_file file is under the directory 'src/'." + echo "run_build_windows=true" >> $GITHUB_OUTPUT + break + fi + if [[ $added_modified_file == "test/"* ]]; then echo "$added_modified_file file is under the directory 'src/'." echo "run_build_windows=true" >> $GITHUB_OUTPUT break diff --git a/.github/workflows/pullrequest.yaml b/.github/workflows/pullrequest.yaml index 82e6750..43aae26 100644 --- a/.github/workflows/pullrequest.yaml +++ b/.github/workflows/pullrequest.yaml @@ -24,12 +24,17 @@ jobs: run: | mapfile -d ',' -t added_modified_files < <(printf '%s,' '${{ steps.get_changed_files.outputs.added_modified }}') for added_modified_file in "${added_modified_files[@]}"; do - if [[ $added_modified_file == ".github/workflows/build.yaml"* ]]; then - echo "$added_modified_file is myself." + if [[ $added_modified_file == ".github/workflows/pullrequest.yaml"* ]]; then + echo "$added_modified_file file changed" echo "run_build_windows=true" >> $GITHUB_OUTPUT break fi - if [[ $added_modified_file == "src/"* ]]; then + if [[ $added_modified_file == "src/net/"* ]]; then + echo "$added_modified_file file is under the directory 'src/'." + echo "run_build_windows=true" >> $GITHUB_OUTPUT + break + fi + if [[ $added_modified_file == "test/"* ]]; then echo "$added_modified_file file is under the directory 'src/'." echo "run_build_windows=true" >> $GITHUB_OUTPUT break diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 53709f3..18d0ec7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,7 @@ on: release: types: - published - - edited +# - edited jobs: # This workflow contains a single job called "build_release"