-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add file-exists action #40
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new composite GitHub action to check for the existence of a file in the repository.
- Adds a new composite action defined in actions/file-exists/action.yml.
- Provides a workflow (.github/workflows/_test-file-exists-action.yml) to test both success and failure scenarios for the action.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
actions/file-exists/action.yml | Adds a composite action to verify if a file exists in the repository. |
.github/workflows/_test-file-exists-action.yml | Adds tests to confirm the proper behavior of the new action. |
Comments suppressed due to low confidence (1)
actions/file-exists/action.yml:18
- The 'core' module is used without being imported or defined. Consider importing '@actions/core' or using an alternative method such as throwing an error to properly fail the action.
core.setFailed(`❌ File does not exist: ${filePath}`);
95cc920
to
18d9c5e
Compare
One more comment: I would add a very basic README providing usage and an example. Also list it in your main readme. |
Note to self: update release-drafter configuration with a new section for actions + labeler with a new label |
This reverts commit bab2bb6.
Changes
Checklist