Skip to content

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Tag: github

ruby

How to optimise Rubocop reviewdog GitHub action to execute faster.

  • bhanunadar
  • Posted on September 16, 2022

Rubocop is a linter and code formatter for ruby, it enforces to follow the ruby style guide to improve readability and maintainability of the code https://rubystyle.guide/. To enforce this across an organisation one of the best way is to add this as a mandatory step for merging the PRs which can be done using Github…

Read More
Github actions
Tech

Copying file from remote server in Github actions

  • bhanunadar
  • Posted on November 28, 2021

It is a little pain to copy files from a remote server in a GitHub action as you need to do authenticate and if your key is passphrase protected then it adds extra pain to it. First, we should not use sensitive data directly, that’s why GitHub provide feature like secrets. So as per our…

Read More
Github actions
Tech

The asterisk problem in GitHub actions

  • bhanunadar
  • Posted on November 24, 2021

Recently I spent around 2 hours to get the head branch name inside a GitHub action. Context: I was trying to configure unit test for my repo, the idea was to get the PR branch name and run a script run_test.sh on a remote server that takes branch name as input. The script checkouts the…

Read More

Recent Posts

  • My Experience with LG Ultragear 32GS60QC (32 inch)
  • TIL: Value Classes
  • Counting Subarrays Where the Max Appears At Least K Times (LeetCode 2962)
  • Solo motorcycle trip to Ratnagiri from Mumbai
  • How to Check If a Private Key Matches a Certificate

Copyright © All rights reserved. Proudly powered by WordPress | Theme: Blog Nano by ThemeMiles.