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

fix(gha): fix incorrect path in distribution pkg creation #5

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

bsojka
Copy link
Collaborator

@bsojka bsojka commented Oct 4, 2024

Summary

  • Fixes
    • Fixed an incorrect --package-path value of distribution package creation in build workflows for „Bootstrap Buddy”.
  • Chores
    • Added cleanup commands to remove temporary files after package creation.

@bsojka bsojka added the fix Bug fix label Oct 4, 2024
@bsojka bsojka self-assigned this Oct 4, 2024
@bsojka bsojka requested a review from a team as a code owner October 4, 2024 13:06
Copy link

coderabbitai bot commented Oct 4, 2024

Walkthrough

In the realm of GitHub Actions, the workflows for the noble application "Bootstrap Buddy" have been refined. The .github/workflows/build_main.yml and .github/workflows/build_pr.yml files have been updated to enhance the build and notarization processes. Key modifications include the establishment of environment variables from the Info.plist, improvements in directory and file handling, and the addition of cleanup commands to ensure the land remains tidy after the creation of packages. Thus, the paths are now handled with greater care, ensuring that the journey of build and notarization flows smoothly.

Changes

File Path Change Summary
.github/workflows/build_main.yml - Updated environment variable setup to extract version from Info.plist.
- Enhanced directory creation and file copying syntax for paths with spaces.
- Added cleanup command post-package build.
- Adjusted commands for synthesizing distribution package for clarity and safety.
.github/workflows/build_pr.yml - Captured application version from Info.plist as an environment variable.
- Improved syntax for directory creation and file operations.
- Included cleanup command to remove temporary build root after package creation.
- Modified distribution package creation commands for direct referencing.

Possibly related PRs

  • feat(gha): change codesigning and notarization #3: The changes in both the main PR and this PR involve updates to the GitHub Actions workflows for building and notarizing the "Bootstrap Buddy" application, specifically focusing on environment variable setups and the build process for installer and distribution packages.

Suggested reviewers

  • aamkye

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 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

github-actions bot commented Oct 4, 2024

🚀 [bumper] Bumped!
New version: v0.0.4 / latest
Changes: v0.0.3...v0.0.4

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

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between e394f74 and 0136015.

📒 Files selected for processing (2)
  • .github/workflows/build_main.yml (2 hunks)
  • .github/workflows/build_pr.yml (2 hunks)
🔇 Additional comments (6)
.github/workflows/build_main.yml (2)

72-73: Verily, a most prudent alteration to the scrolls of creation!

In the annals of Middle-earth, consistency in the ancient texts has ever been of utmost importance. Just as the Elves meticulously crafted their scrolls, so too have you refined the incantations of your build process. The use of braces for variable expansion, much like the intricate borders on Elven manuscripts, brings clarity and uniformity to your sacred workflow.

May your paths be ever true, and your directories as steadfast as the halls of Khazad-dûm!


88-89: By the light of Eärendil, you have honed your craft with the precision of Elven smiths!

In the forges of creation, you have wrought changes that would make even the craftsmen of Gondolin nod in approval. The path to your package now stands clear and true, like the road to Rivendell after the removal of wayward stones.

And lo! With the forceful command of rm -f, you banish the lingering spirits of bygone artifacts. Like Gandalf's staff striking the bridge of Khazad-dûm, your command brooks no argument from files that may or may not exist.

May your builds be ever strong, and your packages as enduring as the foundations of Erebor!

.github/workflows/build_pr.yml (4)

74-75: Behold, a fortification of the paths!

Lo and behold, dear fellowship of code! The paths of our realm have been strengthened with the mighty double quotes, as if forged by the skilled hands of Elven smiths. These enchanted quotations shall guard our directories and files against the foul spaces that may seek to disrupt our journey.

May these changes bring stability to our lands, much like the foundations of Minas Tirith!


76-81: A tale of package forging and land cleansing!

Hark! The master craftsmen of the realm have wrought improvements upon the sacred pkgbuild incantation. The mystical ${PKGROOT} is now enshrouded in protective quotations, much like the Elven cloaks that shielded the Fellowship from unfriendly eyes.

But lo! What's this? A new spell of cleansing has been added! Like the waters of the Entwash purifying the lands of Fangorn, this rm -rf "${PKGROOT}" command shall wash away the temporary dwellings of our build, leaving naught but pristine digital soil in its wake.

May these changes bring order to our realm, as the reign of Aragorn brought peace to Middle-earth!


90-90: A streamlined path to Mount Doom!

Ah, noble scribes of the code! You have simplified our journey, much like Gollum's unexpected aid in guiding Frodo to Mount Doom. The --package-path now points directly to our destination, eliminating unnecessary detours through the treacherous lands of mismatched directories.

May this change guide our packages swiftly and surely to their final resting place, as the eagles bore Frodo and Sam from the fires of Mount Doom!


91-91: The Cleansing of the Shire, in digital form!

Behold, a most noble act of housekeeping! Like the hobbits returning to cleanse the Shire of Saruman's influence, this command shall purge our realm of lingering artifacts. The -f flag stands as a stalwart guardian, ensuring our cleaning ritual proceeds unhindered, even in the face of non-existent foes.

May this change keep our digital Shire as tidy as Bag End on a fine summer's day!

.github/workflows/build_main.yml Show resolved Hide resolved
@bsojka bsojka merged commit 50b857f into main Oct 4, 2024
5 checks passed
@bsojka bsojka deleted the fix/build-workflow branch October 4, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant