Github actions: Workflow tricks
This is a collection of how to accomplish various tasks and tricks in github workflows, which are not directly covered by the github actions documentation and aren’t obvious. How to query the type...
This is a collection of how to accomplish various tasks and tricks in github workflows, which are not directly covered by the github actions documentation and aren’t obvious. How to query the type...
Github Actions documentation on specific events, e.g. “pull_request”, isn’t great. To answer questions like “where can I find the labels added to the PR that triggered the workflow”, it may be the ...
Pip supports installing a python package using a link to a git repository directly. You can specify such a direct link to the package source from the pip command line or a requirements.txt file. Th...
If you want to find the default Python 3 version of any Ubuntu release, run the command rmadison python3 example output: python3 | 3.6.5-3 | bionic | amd64, arm64, armhf, i386,...
If you follow the github instrauctions about git subtree merges, but your source repository (remote) for the subtree merge has git LFS enabled and contains git LFS tracked files, you may see the fo...
Using git lfs migrate rewrites history, which is not always acceptable, especially in distributed projects. You can add files to git LFS by either renaming them (which deletes and re-adds the file,...
This blog post is based on the article with the same name by KC Müller, which I extend a little bit here so that my command takes care of not deleting local branches checked out in worktrees. We l...
If you want to test whether a requirements.txt installs all packages required to run your python application, and you have experimented with the virtual environment before (installed some extra pac...
As I search for these commands time and time again, I’ll just copy the Post which lists them all: https://serverfault.com/questions/96964/list-of-files-installed-from-apt-package To find which fi...
Quick and short, the following command shows you the soure of an installed package: apt-cache policy <Package Name> A list of available sources is /etc/apt/sources.list