Merge branch 'main' of https://github.com/a-lgil/pose-depot #21
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: Release Subfolders | |
# Trigger the workflow on push to the main branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest # Use the latest Ubuntu runner | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 # Check out the repository | |
- name: Set up Python | |
uses: actions/setup-python@v4 # Set up Python environment | |
with: | |
python-version: '3.x' # Specify Python version | |
- name: Install dependencies | |
run: | | |
pip install PyGithub # Install PyGithub library | |
- name: Check and create releases | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} # Use GitHub token from secrets | |
run: | | |
python scripts/create_releases.py # Run the Python script from the /scripts/ folder |