-
Notifications
You must be signed in to change notification settings - Fork 43
34 lines (34 loc) · 1.12 KB
/
action.yml
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: Naver Paper Python GitHub Actions
on:
workflow_dispatch:
schedule:
- cron: '*/30 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get update
sudo apt-get install -y gdebi-core
sudo gdebi google-chrome-stable_current_amd64.deb
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run
run: |
mkdir -p ~/.naver
echo "[default]" > ~/.naver/credentials
echo "username = " $USERNAME >> ~/.naver/credentials
echo "password = " $PASSWORD >> ~/.naver/credentials
python run_new.py
env:
USERNAME: ${{ secrets.USERNAME }} # secret에 저장된 내용을 불러옴
PASSWORD: ${{ secrets.PASSWORD }}
CREDENTIALENV : ${{ secrets.CREDENTIALENV }}