-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.14 KB
/
publish-jobs.yaml
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
name: "Publish Softgarden Jobs on Website"
on:
# push:
# branches: [ "main" ]
# pull_request:
# The branches below must be a subset of the branches above
# branches: [ "main" ]
# types: [ "closed" ]
schedule:
- cron: '1 7 * * *'
jobs:
generate-jobs:
runs-on: ubuntu-latest
environment: brandad.de
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: pip install python-dotenv requests
- name: Exec python script
run: python job-api/main.py
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
FTP_USER: ${{ secrets.FTP_USER }}
PASSWORD: ${{ secrets.PASSWORD }}
API_PATH: ${{ vars.API_PATH }}
FTP_SERVER: ${{ vars.FTP_SERVER }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
add_options: '--all'