-
Notifications
You must be signed in to change notification settings - Fork 80
35 lines (33 loc) · 980 Bytes
/
updates-games.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
name: Update Games List
on:
schedule:
- cron: "0 2 * * *"
push:
branches: ["auto_update_games"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
- name: Yarn Install
run: yarn install
- run: ./generate-games.sh
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
commit-message: Auto-update games
branch: auto-games-update
title: "[Bot] Update Games List"
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v1
with:
token: ${{ secrets.PAT }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}