GitHub Actions Set Output Migration For Multiline Pull Request Comments

Nov 12, 2022. 5 min read.

Since set-output command is now deprecated, we will replace it with the new shiny $GITHUB_OUTPUT (and other Environment files) syntax. We will also see if, instead of posting comments on pull request pages, we can leverage the new Job Step Summary approach. Which makes adding custom markdown reports and log messages to our GitHub workflow runs super easy.
Cover photo for GitHub Actions Set Output Migration For Multiline Pull Request Comments post

Invalidate or Clear Github Actions Cache

May 13, 2022. 4 min read.

Cache invalidation is one of the most complex computer science tasks. Especially so for GitHub action workflows since there is no embedded mechanism to clean or invalidate present caches. However, what we can do is to update cache keys with a dedicated environment variable of the workflow or repository secret.
Cover photo for Invalidate or Clear Github Actions Cache post

Github Actions for Dependabot PRs

Dec 7, 2021. 4 min read.

Let's learn how to extend existent Pull Request Update GitHub Actions workflow with steps specific for Dependabot pull requests (i.e. labels). We will add two jobs to the existent pull_request workflow and experiment with separate "before" and "after" workflow_run event workflows. Fortunately, after the recent GitHub actions update we don't need to use a separate pull_request_target event workflow as a workaround.
Cover photo for Github Actions for Dependabot PRs post

Optimize GitHub Actions for UI Builds and Tests with Cache

Nov 23, 2021. 8 min read.

GitHub Actions is an awesome and very powerful tool. Let's explore workflow running time optimizations with caching node_modules and production build artifacts. We will be using "Dependency Cache" GH Actions feature driven by "actions/cache". Hint: as always, cache invalidation is a key.
Cover photo for Optimize GitHub Actions for UI Builds and Tests with Cache post
♥ Built with joy, Gatsby, React, TypeScript and GraphQL ♥
© 2023