From 34b109bd747c7b9d30c9f78e8f0bf70ce9de10b9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 9 Sep 2025 14:38:04 +0200 Subject: workflows: split things into different workflows --- .github/workflows/yandex-cloud-cli-bin.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/yandex-cloud-cli-bin.yml (limited to '.github/workflows/yandex-cloud-cli-bin.yml') diff --git a/.github/workflows/yandex-cloud-cli-bin.yml b/.github/workflows/yandex-cloud-cli-bin.yml new file mode 100644 index 0000000..1bfd844 --- /dev/null +++ b/.github/workflows/yandex-cloud-cli-bin.yml @@ -0,0 +1,35 @@ +name: yandex-cloud-cli-bin + +on: + workflow_call: + workflow_dispatch: + +jobs: + maintenance: + runs-on: ubuntu-latest + container: + image: archlinux:base-devel + steps: + - name: Install dependencies + run: | + pacman -Sy --noconfirm git openssh + - name: Add SSH key + run: | + mkdir -p /root/.ssh/ + cat > /root/.ssh/config <<'EOF' + StrictHostKeyChecking no + EOF + cat > /root/.ssh/id_ed25519 <<'EOF' + ${{ secrets.SSH_KEY }} + EOF + chmod 0600 /root/.ssh/id_ed25519 + - name: Checkout + run: | + git clone -q ssh://aur@aur.archlinux.org/yandex-cloud-cli-bin.git + chmod -R o+w yandex-cloud-cli-bin + - name: Run maintenance + run: | + git config --system --add safe.directory "$( pwd )/yandex-cloud-cli-bin" + # Stupid makepkg hard forbids running as root, which is stupid, which + # is why I'm doing all of that stupidity here and above. + runuser -u nobody -- make -C yandex-cloud-cli-bin maintenance -- cgit v1.2.3