diff --git a/.github/workflows/get-default-keybindings.yml b/.github/workflows/get-default-keybindings.yml index 834854f5..e51a0596 100644 --- a/.github/workflows/get-default-keybindings.yml +++ b/.github/workflows/get-default-keybindings.yml @@ -63,7 +63,27 @@ jobs: id: diff shell: bash run: | - git diff --exit-code && echo "::set-output name=has-diff::false" || echo "::set-output name=has-diff::true" + if git diff --exit-code; then + echo "::set-output name=has-diff::false" + echo "No diff found" + echo "### No diff found :+1:" >> $GITHUB_STEP_SUMMARY + else + echo "::set-output name=has-diff::true" + fi + - name: Extract version numbers + id: ver + shell: bash + run: | + ver_linux=$(head -n 1 generator/default-keybindings-linux.json | sed -E "s/.*(([0-9]+\.){2}[0-9]+).*/\1/") + ver_macos=$(head -n 1 generator/default-keybindings-mac.json | sed -E "s/.*(([0-9]+\.){2}[0-9]+).*/\1/") + ver_windows=$(head -n 1 generator/default-keybindings-win.json | sed -E "s/.*(([0-9]+\.){2}[0-9]+).*/\1/") + echo "ver_linux: ${ver_linux}" + echo "ver_macos: ${ver_macos}" + echo "ver_windows: ${ver_windows}" + echo "Versions:" >> $GITHUB_STEP_SUMMARY + echo "- VS Code for Linux: ${ver_linux}" >> $GITHUB_STEP_SUMMARY + echo "- VS Code for macOS: ${ver_macos}" >> $GITHUB_STEP_SUMMARY + echo "- VS Code for Windows: ${ver_windows}" >> $GITHUB_STEP_SUMMARY - name: Make a unique branch name id: branch-name shell: bash @@ -92,5 +112,6 @@ jobs: title="Update wrappers based on vscode ${version}" body="This pull request has been generated by the automated workflow [Update Default Keybindings](https://github.com/tshino/vscode-kb-macro/actions/workflows/get-default-keybindings.yml)." gh pr create --base main --head ${head} --title "${title}" --body "${body}" + echo "### Created a PR :rocket:" >> $GITHUB_STEP_SUMMARY env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 26fd5e0f..7c914924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the Keyboard Macro Bata extension will be documented in this file. +### [Unreleased] +- Internal + - Added summary output for the automated workflow. [#102](https://github.com/tshino/vscode-kb-macro/pull/102) + ### [0.12.1] - 2022-05-07 - Documentation: - Added 'Testing' section to [DESIGN.md](./DESIGN.md).