Ben Chuanlong Du's Blog

It is never too late to learn.

Common Issues and Solutions for GitHub Actions

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Error: No space left.

Symptom: A GitHub Actions workflow fails with the error message "No space left".

Possible Solutions: 1. An Azure VM mounts an (ephemeral) disk to /mnt which is big enough for most CICD pipelines. You can leverage /mnt to store outputs of your CICD pipelines when necessary. legendu-net/docker_image_builder - config_docker.py is such an example which stores built Docker images into /mnt/docker.

  1. Remove non needed tools. Please refer to apache/flink - free_disk_space.sh and legendu-net/docker-base - purge_cache.sh for examples.

Error: The process '/usr/bin/git' failed with exit code 1

Symptom: A GitHub Actions workflow fail to checkout a branch of a repository and throws the following error message.

Error: The process '/usr/bin/git' failed with exit code 1

Possible Causes and Solutions: It's possible that you use a branch name (e.g., used main while the repo does not have a main branch) which does not exist. If so, use the correct branch name might fix the issue.

Comments