Skip to content

Update the recipes #124

Update the recipes

Update the recipes #124

Workflow file for this run

name: Update the recipes
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * 5'
jobs:
pr:
runs-on: ubuntu-latest
strategy:
matrix:
base_ref:
- akirak
upstream:
- 'https://github.com/melpa/melpa.git'
upstream_branch:
- 'master'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
sparse-checkout: '.'
ref: ${{ matrix.base_ref }}
- name: Switch the branch
run: |
git switch -C tmp akirak
- name: Fetch the upstream
run: |
git remote add upstream ${{ matrix.upstream }}
git fetch upstream ${{ matrix.upstream_branch }}
- name: Cherry pick commits
run: |
git config --add user.name 'github-actions[bot]'
git config --add user.email '6270544+github-actions[bot]@users.noreply.github.com'
git rebase -s ort -X theirs upstream/${{ matrix.upstream_branch }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PAT_PUSH }}
branch: tmp
force: true