Merge pull request #72 from look/look/auto-update-readme

Auto-update Linguist version in README.md
This commit is contained in:
Alex 2021-11-17 14:47:20 +01:00 committed by GitHub
commit 41482679da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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