Secim_2024_Haber_Kaynaklarından_Veri_Çekme #13
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: Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
on: | |
workflow_dispatch: | |
jobs: | |
AA-GetData: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" # install the python version needed | |
- name: install python packages | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: execute py script # run main.py | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python Scripts/aa_getdata.py | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git add -A | |
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty) | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
TRT-GetData: | |
runs-on: ubuntu-latest | |
needs: AA-GetData | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" # install the python version needed | |
- name: install python packages | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: execute py script # run main.py | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python Scripts/trt_getdata.py | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git add -A | |
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty) | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
NTV-GetData: | |
runs-on: ubuntu-latest | |
needs: TRT-GetData | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" # install the python version needed | |
- name: install python packages | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: execute py script # run main.py | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python Scripts/ntv_getdata.py | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git add -A | |
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty) | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
HURRIYET-GetData: | |
runs-on: ubuntu-latest | |
needs: NTV-GetData | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" # install the python version needed | |
- name: install python packages | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: execute py script # run main.py | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python Scripts/hurriyet_getdata.py | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git add -A | |
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty) | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
CNN-GetData: | |
runs-on: ubuntu-latest | |
needs: HURRIYET-GetData | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" # install the python version needed | |
- name: Change File | |
run: cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
- name: install python packages | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: execute py script # run main.py | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python Scripts/cnn_getdata.py | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git add -A | |
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty) | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
ANKA-GetData: | |
runs-on: ubuntu-latest | |
needs: CNN-GetData | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 # checkout the repository content | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" # install the python version needed | |
- name: Change File | |
run: cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
- name: install python packages | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: execute py script # run main.py | |
run: | | |
cd Secim_2024_Haber_Kaynaklarından_Veri_Çekme | |
python Scripts/anka_getdata.py | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git add -A | |
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty) | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |