name: Update fork

on:
  schedule:
    - cron: 0 0 * * *

jobs:
  update_fork:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout upstream repository
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Push changes to fork
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          git remote add upstream https://github.com/mawww/kakoune.git
          git fetch upstream # otherwise we won't have tags for push
          git pull --rebase upstream master
          git push --force
          git push --tags

name: Update fork

on:
  schedule:
    - cron: 0 0 * * *
  workflow_dispatch:

jobs:
  update_fork:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout upstream repository
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Push changes to fork
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          git remote add upstream https://github.com/mawww/kakoune.git
          git fetch upstream # otherwise we won't have tags for push
          git pull --rebase upstream master
          git push --force
          git push --tags

Add also possibility to invoke the fork update manually
Add also possibility to invoke the fork update manually
