Skip to content

Update the recipes

Update the recipes #55

Workflow file for this run

name: Merge the upstream
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * 5'
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
sparse-checkout: '.'
- name: Switch to a work branch
run: git switch -C upstream-recipes
- name: Fetch the upstream
run: |
git remote add upstream https://github.com/melpa/melpa.git
git fetch upstream master
- uses: DeterminateSystems/nix-installer-action@v4
with:
diagnostic-endpoint: ''
- name: Merge upstream recipes
run: |
# Set some identity. Actually it will be overridden later, so it's
# unused
git config --add user.name 'github-actions[bot]'
git config --add user.email '6270544+github-actions[bot]@users.noreply.github.com'
nix run .#update-recipes --no-write-lock-file -- upstream/master
- name: Create a pull request
uses: peter-evans/create-pull-request@v5
with:
base: akirak
token: ${{ secrets.PAT_FOR_PR }}
title: 'Merge the upstream recipe commits'
branch: create-pull-request/merge-recipes
labels: automation