Skip to content

πŸ“¦ Script Feed-RSS #565

πŸ“¦ Script Feed-RSS

πŸ“¦ Script Feed-RSS #565

name: πŸ“¦ Script Feed-RSS
on:
schedule:
- cron: '0 8 * * *'
push:
branches: [ "develop" ]
permissions:
contents: write
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: βš™οΈ Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: βš™οΈ Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt --no-cache-dir
- name: βœ… Run Script
run: |
python ./src/main.py
- name: πŸ“ Git Config
run: |
git config --global user.email ${{secrets.EMAIL}}
git config --global user.name ${{secrets.USERNAME}}
shell: bash
- name: πŸ“ Git Process
run: |
if [[ `git status --porcelain` ]]; then
git add --all
git commit -a -m "πŸ‘» BOO: Update"
git push origin HEAD:master --force
else
echo "WARNING: No changes were detected. git commit push action aborted."
fi
shell: bash
continue-on-error: true