Files
go-cv/.gitea/workflows/push-to-github.yaml
Bryan Joshua Pedini 11e84d771c
Some checks failed
Push to GitHub / mirror (push) Failing after 4s
debug 3
2025-12-31 19:05:33 +01:00

43 lines
1.0 KiB
YAML

---
name: Push to GitHub
concurrency:
group: push-to-github
cancel-in-progress: false
on:
push:
branches: ["**"]
defaults:
run:
shell: bash
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
git config --global user.name "${GIT_NAME}"
git config --global user.email "${GIT_EMAIL}"
git config --global credential.helper store
echo "https://${GIT_EMAIL//@/%40}:${GIT_TOKEN}@github.com" > ~/.git-credentials
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
GIT_NAME: ${{ secrets.GIT_NAME }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
- run: |
git remote add github "${GIT_REPO_URL}" || git remote set-url github "${GIT_REPO_URL}"
echo "DEBUG"
echo "${GIT_NAME}"
cat ~/.git-credentials
env:
GIT_NAME: ${{ secrets.GIT_NAME }}
GIT_REPO_URL: ${{ secrets.GIT_REPO_URL }}
- run: |
git push github --all
git push github --tags