Skip to content

Instantly share code, notes, and snippets.

View kuvaldini's full-sized avatar
💭
🌄🦌🏔️ coding in sunny snowy winter forest among mountains

kuvaldini

💭
🌄🦌🏔️ coding in sunny snowy winter forest among mountains
View GitHub Profile
@kuvaldini
kuvaldini / make-workflows.sh
Created July 3, 2021 20:26
Script to expand YAML anchors in GitHub Actions workflows
#!/usr/bin/env bash
set -euo pipefail
--help(){
cat<<'END'
make-workflows:
This script expands '*.src.yml' from $1 (default: script's directory)
to $2 (default:REPO_ROOT/.github/workflows) with corresponding name '*.yml'
Main goal is to dereference YAML anchors.
( export RING_NAME=s2lm_orion && make -sj16 prepare_conf && make -sj16 && make -sj16 fs_image; )