This repository has been archived by the owner on May 20, 2023. It is now read-only.
Auto PATCH #3337
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
# This worflow triggers the tweet api for already scheduled tweets | |
name: Auto PATCH | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0/5 * * *" | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
auto_create_issue: | |
# run only if repo is not a fork | |
if: github.repository == 'codinasion/good-1st-issue' | |
runs-on: ubuntu-latest | |
# timeout-minutes: 1440 (doesn't work, default is 360) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# - name: Cache PIP packages | |
# id: cache-pip-packages | |
# uses: actions/cache@v2 | |
# with: | |
# path: backend/.venv | |
# key: pip-packages-${{ hashFiles('backend/requirements.txt') }} | |
- name: Install PIP packages | |
# if: steps.cache-pip-packages.outputs.cache-hit != 'true' | |
run: | | |
cd backend | |
python -m venv .venv | |
source .venv/bin/activate | |
pip install -r requirements.txt | |
- name: PATCH | |
run: | | |
cd backend | |
source .venv/bin/activate | |
python3 script/patch.py ${{ secrets.BACKEND_URL }} ${{ secrets.BACKEND_URL_TOKEN }} |