-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix re-organize add img to readme add config
- Loading branch information
1 parent
ed9543e
commit d3f3bc1
Showing
7 changed files
with
1,701 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Draw keymaps | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- "**.lock" | ||
- "glove80.keymap" | ||
|
||
jobs: | ||
draw: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Set to 2 if amending, or 1 if creating a new commit | ||
fetch-depth: 1 | ||
submodules: recursive | ||
|
||
- name: Install nix | ||
uses: cachix/install-nix-action@v25 | ||
- name: Setup nix cache | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: Draw keymaps | ||
run: | | ||
nix build .#visual | ||
cp result/layout.svg img/layout.svg | ||
- name: Commit changes | ||
id: commit | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "[Draw] ${{ github.event.head_commit.message || '(Manually triggered)' }}" | ||
file_pattern: img/** | ||
|
||
- name: Summarize | ||
run: | | ||
sha="${{ steps.commit.outputs.commit_hash }}" | ||
url="${{ github.server_url }}/${{ github.repository }}/commit/$sha" | ||
echo "## Summary" >> $GITHUB_STEP_SUMMARY | ||
if [[ -z "$sha" ]]; then | ||
echo "Nothing to commit!" >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo "[\`${sha:0:6}\`]($url) pushed to \`${{ github.ref_name }}\`." >> $GITHUB_STEP_SUMMARY | ||
fi | ||
echo >> $GITHUB_STEP_SUMMARY | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.