get branch name
Some checks failed
Test / test_service (push) Failing after 1s

This commit is contained in:
Sveske-Juice 2025-05-04 18:23:32 +02:00
parent c90e8555da
commit 521b089602

View file

@ -1,15 +1,19 @@
name: Test
on:
push:
branches:
- main
on: [push]
jobs:
test_service:
runs-on: native
steps:
- name: Print stuff
- name: Get branch
run: echo "BRANCH=$(echo "${{ gitea.ref }}" | cut -d'/' -f3)" >> $GITHUB_ENV
- name: Signal deprived.dev for rebuild
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
run: |
echo "Hellooo"
sshkey=$(mktemp)
trap "rm -rf $sshkey" exit
echo -e $SSH_PRIVATE_KEY > $sshkey
ssh -i $sshkey -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no deprivedbuilder@deprived.dev -t '/run/current-system/sw/bin/systemctl start "build-deprived-website-$BRANCH"'