Open gabtorre opened 1 year ago
Temporary workaround:
name: output-test
description: change golang
on:
- repositoriesMatchingQuery: context:global repo:sourcegraph/sourcegraph file:Dockerfile select:file golang
steps:
- run: |
while read -r dockerfile; do
sed -E -i 's/golang/golang:18.18.0/' $dockerfile
done < <(find . -not -path '*/node_modules/*' -name '*Dockerfile*')
container: ubuntu:latest
changesetTemplate:
title: changing golang
body: |
${{ range $index, $hook := steps.modified_files }}
- ${{ $hook }}
${{ end }}
commit:
message: my message
branch: ${{ batch_change.name }}
I'm working on a proper solution for this.
It turns out we strip out outputs
from the changesetTemplate today.
This isn't ideal and we should work on fixing.
Steps to reproduce:
Expected behavior:
The spec validation and execution are expected to run without issues.
Actual behavior:
Error: Validating batch spec template: template: validateBatchSpecTemplate:20: undefined variable "$bar"
It looks like this validation is removing the line with outputs, resulting in the spec below: https://sourcegraph.com/github.com/sourcegraph/sourcegraph@434944e17d371b5246feed4b3c99b9703a9fd15e/-/blob/lib/batches/template/templating.go?L58-68
If you would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are no SLAs on issues like there are for support requests).