get rid of dangerous behivour hopefully
Some checks failed
Github Push back to gitea / Push (push) Failing after 31s
Some checks failed
Github Push back to gitea / Push (push) Failing after 31s
This commit is contained in:
parent
6bc4f2f5b8
commit
5da2886aa9
14
.github/github_pushback.sh
vendored
14
.github/github_pushback.sh
vendored
@ -16,10 +16,16 @@ ssh-keyscan -H git.pika-os.com >> ~/.ssh/known_hosts
|
|||||||
# Commit changes to git
|
# Commit changes to git
|
||||||
git config --global user.name 'Github Gitea Push Back Key - Cosmo'
|
git config --global user.name 'Github Gitea Push Back Key - Cosmo'
|
||||||
git config --global user.email 'cosmo@pika-os.com'
|
git config --global user.email 'cosmo@pika-os.com'
|
||||||
git config --global --add safe.directory /__w/gitea-pika-first-setup/gitea-pika-first-setup
|
#git config --global --add safe.directory /__w/gitea-pika-first-setup/gitea-pika-first-setup
|
||||||
git remote set-url origin git@git.pika-os.com:custom-gui-packages/pika-first-setup
|
|
||||||
|
git clone git@git.pika-os.com:custom-gui-packages/pika-first-setup
|
||||||
|
|
||||||
|
rm -rfv ./gitea-pika-first-setup/.git
|
||||||
|
cp ./pika-first-setup/.git ./gitea-pika-first-setup/
|
||||||
|
|
||||||
|
cd ./gitea-pika-first-setup
|
||||||
git add .
|
git add .
|
||||||
git commit -am"Github Mirror Push Back"
|
git commit -am"Github Mirror Push Back"
|
||||||
git config pull.rebase true
|
#git config pull.rebase true
|
||||||
git pull
|
#git pull
|
||||||
git push
|
git push
|
||||||
|
13
.github/workflows/github-pushback.yml
vendored
13
.github/workflows/github-pushback.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
Push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
|
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
|
||||||
@ -26,10 +26,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
|
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
uses: shimataro/ssh-key-action@v2
|
uses: shimataro/ssh-key-action@v2
|
||||||
with:
|
with:
|
||||||
@ -39,6 +35,7 @@ jobs:
|
|||||||
if_key_exists: replace
|
if_key_exists: replace
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
env:
|
run: git clone https://github.com/PikaOS-Linux/gitea-pika-first-setup
|
||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
|
||||||
run: ./.github/github_pushback.sh
|
- name: Run
|
||||||
|
run: ./gitea-pika-first-setup/.github/github_pushback.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user