Publish Softgarden Jobs on Website #170
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |