-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1022 Bytes
/
check-build-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# vim: softtabstop=2 shiftwidth=2 tabstop=2 expandtab
# vim: textwidth=80 colorcolumn=+1
---
name: Check Build Push
on:
# Allows manual workflow run (must in default branch to work)
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-24.04
# container:
# image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08
# options: --privileged
steps:
- uses: actions/checkout@v4
with:
repository: 'wehagy/org.wezfurlong.wezterm'
#path: 'manifests'
- name: check
id: check
run:
- >-
SHA256_NEW="$(curl -sSL https://api.github.com/repos/wez/wezterm/commits/main
| jq --raw-output '.commit.tree.sha')"
- |
if ! grep "$SHA256_NEW" org.wezfurlong.wezterm.yml; then
SHA256_OLD="$(sed -n '/commit/{n;p;}' org.wezfurlong.wezterm.yml)"
sed "s/${SHA256_OLD}/${SHA256_NEW}" org.wezfurlong.wezterm.yml
fi
- >-
echo "hello"