Repository navigation
66 lines (64 loc) · 1.85 KB
/
Copy pathupdate.yml
File metadata and controls
66 lines (64 loc) · 1.85 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Create branches with automatic 0watch updates
name: Update
on:
workflow_dispatch: {}
schedule:
- cron: '0 2 * * *'
jobs:
watch:
strategy:
matrix:
include:
- os: windows-latest
name: windows
run: feeds\watch.ps1
- os: macos-latest
name: macos
run: feeds/watch.sh
- os: ubuntu-latest
name: linux
run: feeds/watch.sh
runs-on: ${{matrix.os}}
steps:
- uses: 0install/github-actions/0repo-setup@v1
with:
git-user-name: apps.0install.net
git-user-email: webmaster@0install.net
- name: Run 0watch
env:
GITHUB_TOKEN: ${{github.token}}
run: ${{matrix.run}}
- name: Upload generated feeds
if: always()
uses: actions/upload-artifact@v7
with:
name: ${{matrix.name}}-feeds
path: incoming
merge:
runs-on: ubuntu-latest
needs: [watch]
steps:
- uses: 0install/github-actions/0repo-setup@v1
with:
git-user-name: apps.0install.net
git-user-email: webmaster@0install.net
- name: Download feeds
uses: actions/download-artifact@v8
with:
pattern: '*-feeds'
merge-multiple: true
path: incoming
- name: Check if there are new feeds
id: new-feeds
run: if ls incoming/*.xml; then echo "found=true" >> $GITHUB_OUTPUT; fi
- uses: 0install/github-actions/0repo@v1
if: steps.new-feeds.outputs.found
- name: Create Pull Request
if: steps.new-feeds.outputs.found
uses: peter-evans/create-pull-request@v7
with:
token: ${{github.token}}
path: feeds
branch: automatic-updates
title: Automatic updates
body: Automatic updates generated by 0watch scripts