Automatic get Adobe from Software KMUTNB #28
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
name: Automatic get Adobe from Software KMUTNB | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
type: [opened] | |
branches: [main] | |
schedule: | |
- cron: "0 22 * * 0" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python 3.9 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests python-dotenv | |
- name: Create env file | |
run: | | |
echo "KMUTNB_USERNAME=${{ secrets.KMUTNB_USERNAME }}" >> .env | |
echo "KMUTNB_PASSWORD=${{ secrets.KMUTNB_PASSWORD }}" >> .env | |
cat .env | |
- name: Running Payload | |
run: python payload.py |