From 95ac19f5047d40e67c25b49d85011e7efc9098ed Mon Sep 17 00:00:00 2001 From: Luke Francl Date: Tue, 16 Nov 2021 12:24:28 -0800 Subject: [PATCH] Auto-update Linguist version in README.md --- .github/workflows/sync-linguist.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-linguist.yml b/.github/workflows/sync-linguist.yml index 5b40aef..8abe965 100644 --- a/.github/workflows/sync-linguist.yml +++ b/.github/workflows/sync-linguist.yml @@ -73,9 +73,13 @@ jobs: echo "::set-output name=short_commit::${commit::8}" cd .. - - name: Update Linguist commit + - name: Update Linguist information run: | + set -euo pipefail + IFS=$'\n\t' + sed --in-place --regexp-extended 's/(commit[[:space:]]+=[[:space:]])("[a-f0-9]{40}")/\1"${{ steps.linguist-release.outputs.commit }}"/' internal/code-generator/generator/generator_test.go + sed --in-place --regexp-extended 's/version \*\*v.+\*\*\./version \*\*${{ steps.linguist-release.outputs.linguist_version }}\*\*\./' README.md - name: Generate code run: make code-generate - name: Commit changes