Skip to content

Commit defce1b

Browse files
committed
do not generate keymap if the version are unchanged
1 parent f1de9bf commit defce1b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/deploy.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,26 @@ jobs:
1010
runs-on: ubuntu-latest
1111
outputs:
1212
lxl: ${{ steps.version.outputs.lxl }}
13+
keymap: ${{ steps.version.outputs.keymap }}
14+
keymap_macos: ${{ steps.version.outputs.keymap_macos }}
1315
steps:
1416

15-
- name: Get Lite XL version
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Get versions
1621
id: version
1722
env:
1823
GH_TOKEN: ${{ github.token }}
19-
run: echo "lxl=$(gh -R lite-xl/lite-xl release list --exclude-drafts --exclude-pre-releases --limit 1 --json tagName --jq .[].tagName)" >> "$GITHUB_OUTPUT"
24+
run: |
25+
echo "lxl=$(gh -R lite-xl/lite-xl release list --exclude-drafts --exclude-pre-releases --limit 1 --json tagName --jq .[].tagName)" >> "$GITHUB_OUTPUT"
26+
echo "keymap=$(jq .version docs/assets/keymap.json)" >> "$GITHUB_OUTPUT"
27+
echo "keymap_macos=$(jq .version docs/assets/keymap-macos.json)" >> "$GITHUB_OUTPUT"
2028
2129
generate_keymap:
2230
uses: ./.github/workflows/generate_keymap.yml
2331
needs: version
32+
if: needs.version.outputs.lxl != needs.version.outputs.keymap || needs.version.outputs.lxl != needs.version.outputs.keymap_macos
2433
secrets: inherit
2534
permissions:
2635
contents: write

0 commit comments

Comments
 (0)