Some checks failed
build-and-push / detect-changes (push) Failing after 0s
build-and-push / build (catering-services) (push) Has been skipped
build-and-push / build (companies) (push) Has been skipped
build-and-push / build (cron) (push) Failing after 0s
build-and-push / build (users) (push) Failing after 0s
build-and-push / build (video-editors) (push) Failing after 0s
build-and-push / build (customers) (push) Failing after 0s
build-and-push / build (developers) (push) Failing after 0s
build-and-push / build (employees) (push) Failing after 0s
build-and-push / build (fitness-trainers) (push) Failing after 0s
build-and-push / build (gateway) (push) Failing after 0s
build-and-push / build (graphic-designers) (push) Failing after 0s
build-and-push / build (job-seekers) (push) Failing after 0s
build-and-push / build (jobs) (push) Failing after 0s
build-and-push / build (leads) (push) Failing after 0s
build-and-push / build (makeup-artists) (push) Failing after 0s
build-and-push / build (payments) (push) Failing after 0s
build-and-push / build (photographers) (push) Failing after 0s
build-and-push / build (social-media-managers) (push) Failing after 0s
build-and-push / build (tutors) (push) Failing after 0s
build-and-push / build (ugc-content-creators) (push) Failing after 0s
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: sync-to-forgejo
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- high-performance
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: sync-to-forgejo-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
|
|
- name: Push to Forgejo
|
|
env:
|
|
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
|
run: |
|
|
set -euo pipefail
|
|
git remote add forgejo "https://admin:${FORGEJO_TOKEN}@ci.nxtgauge.com/ashwin/${{ github.event.repository.name }}.git" 2>/dev/null || \
|
|
git remote set-url forgejo "https://admin:${FORGEJO_TOKEN}@ci.nxtgauge.com/ashwin/${{ github.event.repository.name }}.git"
|
|
git push forgejo "HEAD:${GITHUB_REF#refs/heads/}" --force
|