Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only add excludes to find command if it's defined #9

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

kadler
Copy link
Contributor

@kadler kadler commented Oct 18, 2023

If excludes is not set in the yaml, or set to "", then the following error occurs:

/entrypoint.sh: line 44: local: `': not a valid identifier

When excludes is empty, it causes handling of the for loop over its contents to fail. To prevent this, check that the variable is non-empty prior to looping over its contents.

In addition to this fix, document this feature in the readme and fix some typos there.

Fixes #7

If excludes is not set in the yaml, or set to "", then the following
error occurs:

/entrypoint.sh: line 44: local: `': not a valid identifier

When excludes is empty, it causes handling of the for loop over its
contents to fail. To prevent this, check that the variable is non-empty
prior to looping over its contents.

In addition to this fix, document this feature in the readme and fix
some typos there.

Fixes RafikFarhad#7
@kadler
Copy link
Contributor Author

kadler commented Oct 18, 2023

I have not tested these changes since I don't know how to test github actions.

@RafikFarhad RafikFarhad self-requested a review October 18, 2023 10:53
@Nerixyz
Copy link

Nerixyz commented Oct 31, 2023

I have not tested these changes since I don't know how to test github actions.

You can specify a specific commit like this:

jobs:
  check-formatting:
    # ...
    steps:
      # ...
      - name: clang-format
        uses: kadler/clang-format-github-action@6a2185a0aef1c8f132b026804b66eac35a231ff4
        with:
          sources: "**/*.hpp,**/*.h,**/*.cpp,"

@RafikFarhad
Copy link
Owner

Thank you very much 🎉

@RafikFarhad RafikFarhad merged commit 212967e into RafikFarhad:master Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Actions encounters error if excludes is not defined.
3 participants