-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 994 Bytes
/
run-task.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
name: Run Task
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Every day at 00:00 UTC.
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
- name: Install dependencies
run: poetry install --without dev
- name: Running
run: |
poetry run auto quotes
env:
GH_AUTO_PG_AIVEN_PROJECT: ${{ secrets.GH_AUTO_PG_AIVEN_PROJECT }}
GH_AUTO_PG_AIVEN_SERVICE: ${{ secrets.GH_AUTO_PG_AIVEN_SERVICE }}
GH_AUTO_PG_USER: ${{ secrets.GH_AUTO_PG_USER }}
GH_AUTO_PG_PASSWORD: ${{ secrets.GH_AUTO_PG_PASSWORD }}
GH_AUTO_PG_DATABASE: ${{ secrets.GH_AUTO_PG_DATABASE}}
GH_AUTO_PG_PORT: ${{ secrets.GH_AUTO_PG_PORT}}