pika-drivers/.github/workflows/github-pushback.yml
Ward from fusion-voyager-3 923495fa20
Some checks failed
Github Push back to gitea / Push (push) Failing after 31s
fix
2024-12-05 17:42:48 +03:00

42 lines
882 B
YAML

name: Github Push back to gitea
on:
push:
branches:
- main
jobs:
Push:
runs-on: ubuntu-latest
container:
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
volumes:
- /proc:/proc
options: --privileged -it
steps:
- name: Runner Origin Check
run: |
if [ "${{ secrets.RUNNER_ORIGIN }}" = "github" ]; then
true
else
exit 1
fi
env:
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GITEA_SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Run
run: git clone https://github.com/PikaOS-Linux/gitea-pika-drivers
- name: Run
run: ./gitea-pika-drivers/.github/github_pushback.sh