Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Guovin/TV
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Feb 6, 2024
2 parents 2958e53 + e23f7ed commit 7f77f51
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: 'Govin'

on:
schedule:
- cron: '0 */12 * * *'
push:
branches:
- master
jobs:
push:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
# in this example, there is a newer version already installed, 3.7.7, so the older version will be downloaded
operating-system: ['ubuntu-20.04']
steps:
- uses: actions/checkout@v3 # Checking out the repo
- name: Run with setup-python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
update-environment: false
cache: 'pipenv'


- name: Install Selenium
run: |
sudo pip3 install selenium
- name: Set up Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
- name: Download chrome driver
uses: nanasess/setup-chromedriver@master
- name: Launch chrome driver
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Install pipenv
run: pip3 install --user pipenv
- name: Install dependecies
run: pipenv --python python3 && pipenv install
- name: Build
run: pipenv run build
- name: Commit and push if changed
run: |
git diff
git config --global user.email "[email protected]"
git config --global user.name "Govin"
git add result.txt
git commit -m "Github Action Auto Updated"
git push

0 comments on commit 7f77f51

Please sign in to comment.