Skip to content

sync upstream

sync upstream #35367

Workflow file for this run

name: sync upstream
on:
schedule:
- cron: '15 */1 * * *'
jobs:
fetch:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: setup config
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
git remote set-url origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
git remote add upstream https://git.pleroma.social/pleroma/pleroma.git
git remote add fork https://kphrx:${{ secrets.PLEROMA_GITLAB_TOKEN }}@git.pleroma.social/kphrx/pleroma.git
- name: fetch upstream
run: |
git fetch upstream stable:stable
git fetch upstream develop:develop
git fetch upstream --tags
- name: push to origin
run: |
git push origin stable:stable
git push origin develop:develop
git push origin --tags
- name: push to fork
run: |
git push fork stable:stable
git push fork develop:develop
git push fork --tags