short commit for easier to read output

This commit is contained in:
Luke Francl 2021-11-01 16:16:05 -07:00
parent 9c452db16f
commit f0dd1b4908

@ -23,6 +23,7 @@ jobs:
IFS=$'\n\t'
commit=$(sed --quiet --regexp-extended 's/[[:space:]]+commit[[:space:]]+=[[:space:]]"([a-f0-9]{40})"/\1/p' internal/code-generator/generator/generator_test.go)
echo "::set-output name=commit::$commit"
echo "::set-output name=short_commit::${commit::8}"
- name: Create a branch
id: branch
run: |
@ -69,6 +70,7 @@ jobs:
fi
echo "::set-output name=linguist_commit::$commit"
echo "::set-output name=short_linguist_commit::${commit::8}"
cd ..
- name: Update Linguist commit
@ -108,7 +110,7 @@ jobs:
pr_body: |
Automated Linguist update :robot:
This PR updates Linguist from [${{ steps.previous_linguist.outputs.commit }}](https://github.com/github/linguist/commit/${{ steps.previous_linguist.outputs.commit }}) to [${{ steps.linguist-release.outputs.linguist_version }}](https://github.com/github/linguist/releases/tag/${{ steps.linguist-release.outputs.linguist_version }}) ([${{ steps.linguist-release.outputs.linguist_commit }}](https://github.com/github/linguist/commit/${{ steps.linguist-release.outputs.linguist_commit }}))
This PR updates Linguist from `[${{ steps.previous_linguist.outputs.short_commit }}](https://github.com/github/linguist/commit/${{ steps.previous_linguist.outputs.commit }})` to [${{ steps.linguist-release.outputs.linguist_version }}](https://github.com/github/linguist/releases/tag/${{ steps.linguist-release.outputs.linguist_version }}) (`[${{ steps.linguist-release.outputs.short_linguist_commit }}](https://github.com/github/linguist/commit/${{ steps.linguist-release.outputs.linguist_commit }})`)
* [Linguist release notes](https://github.com/github/linguist/releases/tag/${{ steps.linguist-release.outputs.linguist_version }})
* [Compare Linguist code changes](https://github.com/github/linguist/compare/${{ steps.previous_linguist.outputs.commit }}...${{ steps.linguist-release.outputs.linguist_version }})