2024-12-05 17:33:52 +03:00
|
|
|
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
|
2024-12-05 17:42:48 +03:00
|
|
|
run: git clone https://github.com/PikaOS-Linux/gitea-pika-drivers
|
2024-12-05 17:33:52 +03:00
|
|
|
|
|
|
|
- name: Run
|
2024-12-05 17:42:48 +03:00
|
|
|
run: ./gitea-pika-drivers/.github/github_pushback.sh
|