Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add job summary #102

Merged
merged 3 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/get-default-keybindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down