Skip to content

Conversation

@kolipakakondal
Copy link
Collaborator

@kolipakakondal kolipakakondal commented Feb 19, 2025

Description

Please include a summary of the change and which issue is fixed.

Fixes # (IEP-XXX)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • ESP-IDF Version:
  • OS (Windows,Linux and macOS):

Dependent components impacted by this PR:

  • Component 1
  • Component 2

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

Summary by CodeRabbit

  • New Features
    • Introduced an automated workflow that streamlines file deployments when changes occur on the main branch.
  • Chores
    • Enhanced project configuration settings to ensure modern Java (Java 17) compatibility, streamlined build processes, and improved debugging support.
    • Updated development environment settings to promote consistent IDE integration and overall stability.
    • Added a timestamp to the changes log to reflect the last update.

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2025

Walkthrough

This pull request introduces a new GitHub Actions workflow named ci_uploads.yml that automates file uploads to an S3 bucket when changes are detected in the internal/com.espressif.idf.uploads/ directory. The workflow triggers on pushes and pull requests to the master branch. Additionally, several Eclipse IDE configuration files have been added for the com.espressif.idf.uploads Java project, specifying Java SE 17 settings, project configurations, preferences, and a minimal module declaration.

Changes

File(s) Change Summary
.github/workflows/ci_uploads.yml Added a new CI workflow for automated file uploads to an S3 bucket triggered by pushes/PRs on the master branch; includes repository checkout, change detection in the uploads folder, and conditional file upload.
internal/com.espressif.idf.uploads/... (.classpath, .project, .settings/org.eclipse.core.resources.prefs, .settings/org.eclipse.jdt.core.prefs, src/module-info.java) Introduced Eclipse IDE configuration files for the com.espressif.idf.uploads project, defining classpath for Java SE 17, project settings, preferences for resource handling and Java compiler, and a basic module declaration.
internal/com.espressif.idf.uploads/changes.txt Updated the timestamp in changes.txt to reflect the last update on 19th February 2025 at 1:47 PM.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant CI as GitHub Actions
    participant S3 as S3 Bucket

    Dev->>CI: Push/PR on master
    CI->>CI: Checkout repository
    CI->>CI: Check for changes in uploads folder
    alt Changes detected
        CI->>S3: Upload "CMakeEd-1.24.1.zip" (public-read)
    else No changes detected
        CI->>CI: Log file not found message
    end
Loading

Suggested reviewers

  • sigmaaa

Poem

Oh, what joy as files align,
A bunny hops through workflows fine.
Codes and configs in neat array,
Uploads and settings save the day.
With a twitch of nose and a happy nod,
I celebrate changes with a carrot applaud!
🥕🐇


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/workflows/ci_uploads.yml (2)

34-39: Parameterize File Path and S3 Bucket Details.
The run block assigns the file path, bucket name, and remote path directly. For improved maintainability, consider parameterizing these values or defining them as workflow-level environment variables if they are subject to change.


40-45: File Upload and Error Handling.
The script correctly checks for the existence of the file before performing the S3 upload. It might be beneficial to capture and log any errors from the aws s3 cp command to aid debugging in case of failed uploads. Additionally, please add a newline character at the end of the file to comply with YAML formatting standards.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 45-45: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6effae2 and 9b6e12e.

⛔ Files ignored due to path filters (2)
  • internal/com.espressif.idf.uploads/bin/module-info.class is excluded by !**/*.class
  • internal/com.espressif.idf.uploads/cmakeed/CMakeEd-1.24.1.zip is excluded by !**/*.zip
📒 Files selected for processing (6)
  • .github/workflows/ci_uploads.yml (1 hunks)
  • internal/com.espressif.idf.uploads/.classpath (1 hunks)
  • internal/com.espressif.idf.uploads/.project (1 hunks)
  • internal/com.espressif.idf.uploads/.settings/org.eclipse.core.resources.prefs (1 hunks)
  • internal/com.espressif.idf.uploads/.settings/org.eclipse.jdt.core.prefs (1 hunks)
  • internal/com.espressif.idf.uploads/src/module-info.java (1 hunks)
✅ Files skipped from review due to trivial changes (5)
  • internal/com.espressif.idf.uploads/src/module-info.java
  • internal/com.espressif.idf.uploads/.classpath
  • internal/com.espressif.idf.uploads/.project
  • internal/com.espressif.idf.uploads/.settings/org.eclipse.core.resources.prefs
  • internal/com.espressif.idf.uploads/.settings/org.eclipse.jdt.core.prefs
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/ci_uploads.yml

[error] 45-45: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build
  • GitHub Check: build_macos
🔇 Additional comments (7)
.github/workflows/ci_uploads.yml (7)

1-1: Workflow Name is Clear.
The name "IDE File Uploads" succinctly describes the purpose of this workflow.


3-10: Trigger Configuration is Correct.
The workflow is triggered on both push and pull_request events targeting the master branch. Verify that these triggers align with your branch management strategy.


11-14: Job Configuration Check.
The job upload-file is correctly defined to run on the ubuntu-latest environment.


15-18: Repository Checkout Step.
The use of actions/checkout@v4 ensures that the repository is checked out with the latest improvements.


19-27: Verify the Change Detection Logic.
This step uses git diff --name-only to check for changes in the internal/com.espressif.idf.uploads/ directory. Please ensure that ${{ github.event.before }} is available in all event contexts (especially for pull requests) to avoid false negatives.


28-29: Conditional Execution for S3 Upload.
The if: env.changed == 'true' condition effectively gates the upload step to run only when changes are detected.


30-33: AWS Credentials Setup.
The AWS credentials are securely injected via GitHub secrets. Confirm that these secrets (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION) are properly configured in your repository settings.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/workflows/ci_uploads.yml (2)

19-36: Update GitHub Script Action Version for Enhanced Compatibility
This step uses actions/github-script@v6 to check for changes in the uploads folder. However, static analysis indicates that the runner for this version is outdated. Consider updating to a later version (e.g., v6.1.0) to benefit from the latest enhancements and fixes.

You can apply this change with the following diff:

-        uses: actions/github-script@v6
+        uses: actions/github-script@v6.1.0
🧰 Tools
🪛 actionlint (1.7.4)

21-21: the runner of "actions/github-script@v6" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


37-54: Enhance Shell Script Robustness and Ensure File Ends with a Newline
The "Upload file to S3" step correctly checks for the existence of the file and uploads it using AWS credentials. A couple of improvements are suggested:

  1. Robust Error Handling: Prepend the run block with set -euo pipefail (or at least set -e) to ensure that the script fails immediately on errors. This makes the step more robust by catching any command failures automatically.

  2. YAML Lint Compliance: YAMLlint flagged that there is no new line at the end of the file. Please add a newline at the very end to adhere to best practices.

Below is a diff snippet addressing these suggestions:

-        run: |
-          FILE="./internal/com.espressif.idf.uploads/cmakeed/CMakeEd-1.24.1.zip"
-          FILE_NAME=$(basename "$FILE")
-          BUCKET_NAME="dl.espressif.com"
-          REMOTE_PATH="dl/cmakeed/updates/"
-          
-          if [ -f "$FILE" ]; then
-            echo "Uploading $FILE_NAME to S3..."
-            aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
-          else
-            echo "File $FILE not found, skipping..."
-          fi
+        run: |
+          set -euo pipefail
+
+          FILE="./internal/com.espressif.idf.uploads/cmakeed/CMakeEd-1.24.1.zip"
+          FILE_NAME=$(basename "$FILE")
+          BUCKET_NAME="dl.espressif.com"
+          REMOTE_PATH="dl/cmakeed/updates/"
+
+          if [ -f "$FILE" ]; then
+            echo "Uploading $FILE_NAME to S3..."
+            aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
+          else
+            echo "File $FILE not found, skipping..."
+          fi

Additionally, please ensure there is a newline character at the end of the file to satisfy YAML linting requirements.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 54-54: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9b6e12e and 0f8dcc1.

📒 Files selected for processing (2)
  • .github/workflows/ci_uploads.yml (1 hunks)
  • internal/com.espressif.idf.uploads/changes.txt (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • internal/com.espressif.idf.uploads/changes.txt
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/ci_uploads.yml

21-21: the runner of "actions/github-script@v6" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🪛 YAMLlint (1.35.1)
.github/workflows/ci_uploads.yml

[error] 54-54: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build_macos
🔇 Additional comments (4)
.github/workflows/ci_uploads.yml (4)

1-2: Workflow Name is Clear and Descriptive
The name "IDE File Uploads" clearly reflects the purpose of this workflow.


3-10: Trigger Configuration is Correct
The workflow is correctly set to trigger on pushes and pull requests to the master branch.


11-14: Job Definition is Set Up Properly
The job upload-file is defined to run on the latest Ubuntu environment, which is appropriate for this CI task.


15-18: Repository Checkout Step is Implemented Correctly
Using actions/checkout@v4 ensures that the repository is available for subsequent steps.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
.github/workflows/ci_uploads.yml (2)

29-32: File Path and Metadata Extraction

The shell script correctly sets the FILE variable to the expected path and uses basename to extract the file name. Although the file path is hardcoded (i.e. CMakeEd-1.24.1.zip), it is acceptable given the current scope. If there is a possibility for future changes (for example, handling multiple files or version updates), consider parameterizing this value.


39-39: Add a Newline at End of File

YAML linting indicates that there is no newline at the end of the file. Please add a newline character to comply with coding style guidelines and avoid potential parsing issues.

-          fi
+          fi
+
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0f8dcc1 and ba2e9c6.

📒 Files selected for processing (1)
  • .github/workflows/ci_uploads.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/ci_uploads.yml

[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build_macos
  • GitHub Check: build
🔇 Additional comments (5)
.github/workflows/ci_uploads.yml (5)

1-2: Descriptive Workflow Name

The workflow name is clear and descriptive ("IDE File Uploads"), which makes it easy to identify its purpose.


3-14: Well-Scoped CI Triggers

The "on" block is correctly configured to trigger on both push and pull_request events on the master branch, and it accurately monitors changes in the internal/com.espressif.idf.uploads/** directory. This precise targeting helps avoid unnecessary workflow executions.


15-18: Job Configuration is Correct

The job definition for upload-file is straightforward and correctly specifies the use of the ubuntu-latest runner.


19-22: Effective Repository Checkout

The checkout step uses actions/checkout@v4, which is aligned with current best practices. This ensures that the workflow always operates on the latest commit from the branch under test.


23-28: Secure and Clear Environment Variable Setup

The step "Upload file to S3" clearly assigns the AWS credentials and region via secrets. This helps keep sensitive information secure. Verify that the secrets (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION) are correctly configured in your repository settings.

Comment on lines 34 to 39
if [ -f "$FILE" ]; then
echo "Uploading $FILE_NAME to S3..."
aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
else
echo "File $FILE not found, skipping..."
fi No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Robust File Existence Check with Opportunity for Enhanced Error Handling

The conditional check using [ -f "$FILE" ] is correctly implemented to determine if the file exists before attempting an upload. The script logs an informative message if the file is not found.

Suggestion: Consider capturing and evaluating the exit code of the aws s3 cp command. This can help in detecting and reporting potential upload failures, ensuring that the CI process fails explicitly if the file upload is critical. For example:

-            aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
+            aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
+            if [ $? -ne 0 ]; then
+              echo "Error: File upload failed."
+              exit 1
+            fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if [ -f "$FILE" ]; then
echo "Uploading $FILE_NAME to S3..."
aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
else
echo "File $FILE not found, skipping..."
fi
if [ -f "$FILE" ]; then
echo "Uploading $FILE_NAME to S3..."
aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
if [ $? -ne 0 ]; then
echo "Error: File upload failed."
exit 1
fi
else
echo "File $FILE not found, skipping..."
fi
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (1)
.github/workflows/ci_uploads.yml (1)

34-39: 🛠️ Refactor suggestion

Enhanced Error Handling for File Upload
Consider capturing and evaluating the exit status of the aws s3 cp command to ensure the workflow fails explicitly if the upload fails. This will add robustness to the deployment process. For example:

-            aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
+            aws s3 cp "$FILE" "s3://$BUCKET_NAME/$REMOTE_PATH$FILE_NAME" --acl public-read
+            if [ $? -ne 0 ]; then
+              echo "Error: File upload failed."
+              exit 1
+            fi
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

🧹 Nitpick comments (1)
.github/workflows/ci_uploads.yml (1)

39-39: Ensure File Ends with a Newline
The YAML linter indicates that the file is missing a newline at the end. Adding one will ensure compliance with YAML formatting standards and prevent potential linting errors.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ba2e9c6 and cf9442b.

📒 Files selected for processing (1)
  • .github/workflows/ci_uploads.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/ci_uploads.yml

[error] 39-39: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (4)
.github/workflows/ci_uploads.yml (4)

1-2: Workflow Title Clarity
The workflow is clearly named "IDE File Uploads" and accurately reflects its purpose of automating file uploads.


3-14: Accurate Trigger Configuration
The workflow uses precise triggers based on push and pull request events to the master branch and correctly filters paths under internal/com.espressif.idf.uploads/**. This ensures that changes in the corresponding directory will initiate the job.


15-22: Job Setup & Checkout Step Verification
The upload-file job is well-configured with runs-on: ubuntu-latest, and the Checkout repository step employs actions/checkout@v4 correctly to access the repository’s content.


23-32: AWS Environment Variables and File Path Setup
The AWS credentials are securely provided using secrets, and the variables for the file path (FILE), bucket name (BUCKET_NAME), and remote path (REMOTE_PATH) are clearly defined. This structure promotes maintainability and secures sensitive data.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/workflows/ci_uploads.yml (2)

31-31: Remove Trailing Whitespace
There are trailing spaces on this line. Please remove them to comply with YAML style guidelines.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 31-31: trailing spaces

(trailing-spaces)


37-37: Add Newline at EOF
Please ensure that a newline is added at the end of the file to meet YAML style requirements.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 37-37: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cf9442b and aed6bbb.

📒 Files selected for processing (1)
  • .github/workflows/ci_uploads.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/ci_uploads.yml

[error] 31-31: trailing spaces

(trailing-spaces)


[error] 37-37: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build_macos
🔇 Additional comments (8)
.github/workflows/ci_uploads.yml (8)

1-2: Descriptive Workflow Name and CI Setup
The workflow name "IDE File Uploads" clearly conveys its purpose.


3-14: Accurate Event Trigger Configuration
The trigger section correctly watches both push and pull_request events on the master branch for changes in the designated uploads directory.


15-18: Well-configured Job Definition
The "upload-file" job is properly defined to run on the latest Ubuntu environment, which is suitable for executing AWS CLI commands.


19-22: Clean Repository Checkout Step
The use of actions/checkout@v4 ensures that the latest version of the repository is checked out as the first step.


23-28: Appropriate Environment Variable Setup
The environment variables for AWS credentials and region are set securely using repository secrets. This setup correctly prepares the environment for the subsequent upload operation.


29-30: Correct File Path and Name Extraction
The file path is specified, and the use of basename to extract the file name is a clean solution.


32-35: Enhance AWS S3 Upload Error Handling
The AWS S3 copy command is executed without checking the exit code, which may mask upload failures. Enhancing error handling by capturing the exit status can ensure that the workflow fails explicitly if the file upload encounters issues.

A possible diff suggestion:

-            aws s3 cp "$FILE" "s3://${{ secrets.DL_BUCKET }}/dl/idf-eclipse-plugin/updates/$FILE_NAME" --acl public-read
+            aws s3 cp "$FILE" "s3://${{ secrets.DL_BUCKET }}/dl/idf-eclipse-plugin/updates/$FILE_NAME" --acl public-read
+            if [ $? -ne 0 ]; then
+              echo "Error: File upload failed."
+              exit 1
+            fi

36-37: Graceful Handling of Missing Files
The else branch logs a message when the file is not found, which is a good way to skip the upload gracefully when the target file does not exist.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 37-37: no new line character at the end of file

(new-line-at-end-of-file)

@kolipakakondal kolipakakondal merged commit 1b6a570 into master Feb 21, 2025
4 of 5 checks passed
@kolipakakondal kolipakakondal deleted the cmakeed_update branch May 7, 2025 14:56
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.

2 participants