blob: c15d50f7dd325bcf4d147c470afb2a02c3248920 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
name: Check aur updates
on:
schedule:
- cron: '19,49 * * * *'
jobs:
check-update:
runs-on: ubuntu-latest
strategy:
fail-fast: true
name: Build
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
- name: Install requirements and initialize submodules
shell: bash
run: |
git submodule update --init
python3 -m pip install -U -r utils/aur/requirements.txt
- name: Check updates
shell: bash
run: |
./utils/aur/aur-check-update.py repo
- name: Set environments
id: get_env
shell: bash
run: |
echo "::set-output name=date::$(date +%Y%m%d%H%M)"
echo "::set-output name=body::$(git diff --name-only | sed -e 's|^repo/|* |')"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: 'Auto update aur repository ${{ steps.get_env.outputs.date }}'
title: Update aur repository
delete-branch: true
branch: update/aur-${{ steps.get_env.outputs.date }}
body: "Update packages:\n${{ steps.get_env.outputs.body }}"
|