-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (40 loc) · 1.28 KB
/
auto-update.yml
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
42
43
name: Auto-update pull request
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
push:
paths:
- '.github/workflows/auto-update.yml'
jobs:
autoupdate:
runs-on: ubuntu-latest
strategy:
matrix:
target: [roswell, sbcl, ccl]
steps:
- uses: actions/checkout@v2
- name: Auto-update
run: |
./update.sh ${{ matrix.target }} > new-versions
./generate-readme.sh ${{ matrix.target }} > ${{ matrix.target }}/README.md
- name: Versions
id: versions
run: |
echo "::set-output name=list::$(cat new-versions | cut -d , -f 1 | sed -e 's/^/* /')"
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Auto-update ${{ matrix.target }}.
title: Auto-update ${{ matrix.target }}
body: |
### New versions
${{ steps.versions.outputs.list }}
Auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request).
labels: auto-update
branch: auto-update
branch-suffix: timestamp
- name: Check outputs
run: |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"