pipeawesome2 0.1.3

Loops, branches and joins to UNIX pipes… in a sane way…
Documentation
1
2
3
4
5
6
7
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

RELEASE_INDEX="$(cat .github/workflows/rust.yml | yq '.jobs.unix_like.steps[] | select(.name == "Release") | path | .[-1]')"

cat .github/workflows/rust.yml | yq '.jobs.unix_like.steps['"${RELEASE_INDEX}"'].with.draft = false' | yq '.on = { "push": { "tags": ["v*"] } } ' | yq '.name = "Rust Tag"' > .github/workflows/rust-tag.yml