Adding test action #2
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: Print PR Details | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
print-pr-details: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install GitHub API library | |
run: | | |
python -m pip install --upgrade pip | |
pip install PyGithub | |
- name: Run Python script to print PR details | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
python .github/scripts/print_pr_details.py |