-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (55 loc) · 2.01 KB
/
readme.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
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is a basic workflow to help you get started with Actions
name: Rebuild awesome aussie README.md
on:
push:
branches: "main"
workflow_dispatch: # Manual dispatch
schedule:
# Daily at midnight utc
- cron: "0 0 * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Install Dependencies
run: npm install
- name: Build README from Airtable
run: npm run readme
env:
AIRTABLE_API_KEY: ${{secrets.AIRTABLE_API_KEY}}
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }}
- name: Build EXTENDED list from Airtable
run: npm run extended
env:
AIRTABLE_API_KEY: ${{secrets.AIRTABLE_API_KEY}}
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }}
# Remove unwanted items
- name: Removing workflows and other items
run: |
rm package-lock.json
rm -rf node_modules
git config user.name "AdamXbot"
git config user.email '[email protected]'
git add .
msg="rebuilding readme from airtable for $(date)"
git commit -m "$msg"
# Create pull request of changes to main branch
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
branch: airtable-updates/patch
delete-branch: true
title: '[BUILD] Daily update readme from Airtable workflow'
base: main
author: AdamXbot <[email protected]>
reviewers: AdamXweb