Loopjet upstream sync #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |