Hello World Action #9
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: Hello World Action | |
#on: [push] | |
on: | |
push: # Этот триггер остается, запускается на push | |
workflow_dispatch: # Добавляем поддержку ручного запуска через API | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Upgrade pip and install requests | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install requests | |
- name: Run hello.py | |
run: python hello.py |