-
-
Notifications
You must be signed in to change notification settings - Fork 43
34 lines (31 loc) · 1.12 KB
/
Selenium-Action_Template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Run Selenium On GitHub Action
on:
workflow_dispatch:
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Checking out repo
uses: actions/checkout@v3
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Installing package list
run: apt list --installed
- name: Removing previous chrome instances on runner
run: sudo apt purge google-chrome-stable
# Need to fetch reqs if needed
- name: Installing all necessary packages
run: pip install chromedriver-autoinstaller selenium pyvirtualdisplay
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Running the Python script
run: python Selenium-Template.py
- name: Commit and Push The Results From Python Selenium Action
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "GitHub Actions Results added"
git push