@andy9775/gat

Helper scripts for GitHub Actions

Usage no npm install needed!

<script type="module">
  import andy9775Gat from 'https://cdn.skypack.dev/@andy9775/gat';
</script>

README

GAT - GitHub Actions Tools

A set of helpers for building composable GitHub actions

Installation

When building a GitHub Action start with:

# source
FROM andy9775/gat as gat
# ================= start of action =================
# any compatible source
FROM alpine
# ============== copy specific helpers ==============
# in this case, copy the environment variable helpers
COPY --from=gat /gat/env/shell /env
RUN /env/setup.sh
# ================= continue action =================
# ...

# execute entrypoint.sh with available env variables
ENTRYPOINT [ "load_env", "/entrypoint.sh" ]