mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-12 22:42:23 +00:00
Update linguist commit
This commit is contained in:
parent
da43eff66d
commit
bd95ff290b
15
.github/workflows/sync-linguist.yml
vendored
15
.github/workflows/sync-linguist.yml
vendored
@ -47,13 +47,26 @@ jobs:
|
|||||||
head -1)
|
head -1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $latest ]]; then
|
if [[ -z "$latest" ]]; then
|
||||||
echo "could not determine latest Linguist version"
|
echo "could not determine latest Linguist version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=linguist_version::$latest"
|
echo "::set-output name=linguist_version::$latest"
|
||||||
git checkout $latest
|
git checkout $latest
|
||||||
|
|
||||||
|
commit=$(git rev-parse HEAD)
|
||||||
|
if [[ -z "$commit" ]]; then
|
||||||
|
echo "could not determine latest Linguist commit"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "::set-output name=linguist_commit::$commit"
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
- name: Update Linguist commit
|
||||||
|
run: |
|
||||||
|
sed --in-place --regexp-extended 's/(commit[[:space:]]+=[[:space:]])("[a-f0-9]{40}")/\1"${{ steps.linguist-release.outputs.linguist_commit }}"/' internal/code-generator/generator/generator_test.go
|
||||||
- name: Generate code
|
- name: Generate code
|
||||||
run: make code-generate
|
run: make code-generate
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
|
Loading…
Reference in New Issue
Block a user