concourse/tasks/generate-version.yaml (13 lines of code) (raw):

--- platform: linux image_resource: type: registry-image source: repository: busybox outputs: - name: publish-version run: path: sh args: - -exc - "echo v$(date '+%Y%m%d') | tee publish-version/version"