Skip to content

Loopjet upstream sync #10

Loopjet upstream sync

Loopjet upstream sync #10

name: Loopjet upstream sync
on:
schedule:
- cron: "23 3 * * *"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: upstream-sync-main
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
ref: main
- name: Merge upstream
env:
UPSTREAM_REPOSITORY: frappe/helpdesk
UPSTREAM_BRANCH: main
run: |
git config user.name "loopjet-upstream-bot"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote add upstream "https://github.com/$UPSTREAM_REPOSITORY.git"
git fetch upstream "$UPSTREAM_BRANCH"
git merge --ff-only "upstream/$UPSTREAM_BRANCH"
git push origin "$UPSTREAM_BRANCH"