{{- if .Values.actions.enabled }}
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "gitea.fullname" . }}-act-runner-config
  labels:
    {{- include "gitea.labels" . | nindent 4 }}
data:
  config.yaml: |
    {{- with .Values.actions.statefulset.actRunner.config -}}
    {{ . | nindent 4}}
    {{- end -}}
{{- end }}
