PR Status Checker #52
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: PR Status Checker | |
on: | |
workflow_run: | |
workflows: ["*"] | |
types: | |
- completed | |
jobs: | |
status-check: | |
name: Check Actions Status | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Debug Information | |
run: | | |
echo "Event name: ${{ github.event_name }}" | |
echo "Workflow: ${{ github.workflow }}" | |
echo "Action: ${{ github.action }}" | |
echo "Actor: ${{ github.actor }}" | |
echo "Repository: ${{ github.repository }}" | |
echo "Ref: ${{ github.ref }}" | |
echo "Head ref: ${{ github.head_ref }}" | |
echo "Base ref: ${{ github.base_ref }}" | |
echo "Event payload:" | |
cat $GITHUB_EVENT_PATH | |
- name: Debug File Structure | |
run: | | |
echo "Current directory:" | |
pwd | |
echo "Directory contents:" | |
ls -R | |
echo "GitHub workspace:" | |
echo $GITHUB_WORKSPACE | |
echo "GitHub workspace contents:" | |
ls -R $GITHUB_WORKSPACE | |
- name: Check Actions Status | |
run: | | |
echo "Current directory before running Python script:" | |
pwd | |
echo "Attempting to run Python script:" | |
python .github/scripts/check_actions_status.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |