-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1.07 KB
/
update-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
name: 'update readme'
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update:
runs-on: ubuntu-latest
env:
POETRY_VERSION: 1.2.2
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup Poetry and dependencies
run: |
pip install poetry==${{ env.POETRY_VERSION }}
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi --no-dev
- name: Configure git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update README with cogapp, commit and push
env:
GHOST_KEY: ${{ secrets.GHOST_KEY }}
EVENTBRITE_KEY: ${{ secrets.EVENTBRITE_KEY }}
run: |
cog -r profile/README.md
git add profile/README.md
git commit -m "(automated commit) update README with cog" || true
git push