mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-19 16:21:55 +00:00
Update .github/workflows/update-colorschemes.yml
to track the latest release and update the ghostty-specific download
This commit is contained in:
10
.github/workflows/update-colorschemes.yml
vendored
10
.github/workflows/update-colorschemes.yml
vendored
@@ -40,9 +40,11 @@ jobs:
|
|||||||
- name: Run zig fetch
|
- name: Run zig fetch
|
||||||
id: zig_fetch
|
id: zig_fetch
|
||||||
run: |
|
run: |
|
||||||
UPSTREAM_REV="$(curl "https://api.github.com/repos/mbadolato/iTerm2-Color-Schemes/commits/master" | jq -r '.sha')"
|
# Get the latest release from iTerm2-Color-Schemes
|
||||||
nix develop -c zig fetch --save="iterm2_themes" "https://github.com/mbadolato/iTerm2-Color-Schemes/archive/$UPSTREAM_REV.tar.gz"
|
RELEASE_INFO=$(gh api repos/mbadolato/iTerm2-Color-Schemes/releases/latest)
|
||||||
echo "upstream_rev=$UPSTREAM_REV" >> "$GITHUB_OUTPUT"
|
TAG_NAME=$(echo "$RELEASE_INFO" | jq -r '.tag_name')
|
||||||
|
nix develop -c zig fetch --save="iterm2_themes" "https://github.com/mbadolato/iTerm2-Color-Schemes/releases/download/${TAG_NAME}/ghostty-themes.tgz"
|
||||||
|
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Update zig cache hash
|
- name: Update zig cache hash
|
||||||
run: |
|
run: |
|
||||||
@@ -71,5 +73,5 @@ jobs:
|
|||||||
build.zig.zon.json
|
build.zig.zon.json
|
||||||
flatpak/zig-packages.json
|
flatpak/zig-packages.json
|
||||||
body: |
|
body: |
|
||||||
Upstream revision: https://github.com/mbadolato/iTerm2-Color-Schemes/tree/${{ steps.zig_fetch.outputs.upstream_rev }}
|
Upstream release: https://github.com/mbadolato/iTerm2-Color-Schemes/releases/tag/${{ steps.zig_fetch.outputs.tag_name }}
|
||||||
labels: dependencies
|
labels: dependencies
|
||||||
|
Reference in New Issue
Block a user