forked from LongForWisdom/rp-bounty
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.47 KB
/
data-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
44
45
46
47
48
name: data-update
on:
workflow_dispatch:
schedule:
- cron: "00 17 * * *"
jobs:
get_rss:
runs-on: ubuntu-latest
name: Update All Data
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: 'true'
ref: production
- name: Submodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: RSS to JSON
continue-on-error: true
uses: I-Valchev/[email protected]
with:
source: .github/feeds.yaml
target: _data/gmc-rss.json
- name: Copy Source Data
continue-on-error: true
run: |
rm -f -r "bounties"
cp -R "_source/bounties" "."
cp "_source/meta/bounty-faq.md" "docs/bounty-faq.md"
cp "_source/meta/resources.md" "docs/resources.md"
cp "_source/meta/dates.yml" "_data/dates.yml"
cp "_source/meta/contacts.yml" "_data/contacts.yml"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Automated update of source data via github action"
token: ${{ secrets.PAT }}
branch: temp-data-updates
delete-branch: true
title: 'Update Source Data'
body: "Automated update of source data via github action. Includes add and remove of bounties and update of docs files."