nixos-config/.forgejo/workflows/test.yml
Chris (wolcen) Thompson 8fdcb807b4
Some checks failed
/ build (push) Failing after 0s
Try gomplate
2025-10-15 20:07:32 -04:00

49 lines
1.2 KiB
YAML

on:
push:
paths:
- '**/test.yml'
workflow_dispatch:
inputs:
boolean:
description: 'Boolean'
required: true
type: boolean
jobs:
build:
runs-on: docker
if: inputs.boolean || vars.RUN_DEFAULT == '1'
container:
image: git.agaric.com/agaric/deploycontainer:0.0.5
env:
COMPOSER_IGNORE_PLATFORM_REQS: 1
COMPOSER_ARGS: "install --no-dev --no-progress --no-interaction --no-scripts --optimize-autoloader"
SHHH: {{secrets.SHHH}}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Run Gomplate Action
uses: https://github.com/ammarlakis/action-gomplate@v1
with:
input_file: 'testing.template'
output_file: 'testing.md'
- name: inspect environment
shell: "bash --noprofile --norc -exo pipefail {0}"
run: |
env
jq . - <<'EOF'
${{ toJSON(github) }}
EOF
jq . - <<'EOF'
${{ toJSON(forge) }}
EOF
jq . - <<'EOF'
${{ toJSON(secrets) }}
EOF
jq . - <<'EOF'
${{ toJSON(inputs) }}
EOF
jq . - <<'EOF'
${{ toJSON(vars) }}
EOF
cat testing.md