Update the recipes #117
Workflow file for this run
This file contains 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: 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: Fetch the upstream | |
run: | | |
git remote add upstream ${{ matrix.upstream }} | |
git fetch upstream ${{ matrix.upstream_branch }} | |
- name: Make a temporary branch | |
run: | | |
git switch -C tmp upstream/${{ matrix.upstream_branch }} | |
- name: Cherry pick commits | |
run: | | |
git cherry-pick --strategy ort -X theirs ..${{ matrix.base_ref }} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
force: true |