forked from newsWhisperer/winterIsComing
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.14 KB
/
manually.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
# This is a basic workflow to help you get started with Actions
name: manually:0.0
on:
workflow_dispatch:
jobs:
docker-run-action:
runs-on: ubuntu-latest
container:
image: tamboraorg/crecoding:2020.0
env:
NEWSAPI_KEY: ${{ secrets.NEWSAPI_KEY }}
volumes:
- ${{ github.workspace }}:/cre/python
steps:
- uses: actions/checkout@v3
- name: Set ownership
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
# with:
# ref: master
- name: install aiohttp
run: (pip3 install aiohttp)
- name: install asyncio
run: (pip3 install asyncio)
- name: cd /cre/python/
run: (cd /cre/python/)
- name: cp mysecrets.py
run: (cp mysecrets.orig.py mysecrets.py)
- name: Run newsapi
env:
NEWSAPI_KEY: ${{ secrets.NEWSAPI_KEY }}
run: (python3 manually.py)
- name: Submit changes
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase --autostash ...'
add: 'csv/*.csv'
tag_push: '--force'