Skip to content

github-create-and-add-labels-all-repos-using-python #14

github-create-and-add-labels-all-repos-using-python

github-create-and-add-labels-all-repos-using-python #14

name: github-create-and-add-labels-all-repos-using-python
on:
schedule:
- cron: "0 9 * * 2" # runs weekly at 9 AM on Tuesday
workflow_dispatch:
inputs:
organizarion:
description: 'GitHub organization name'
required: true
type: string
default: 'devwithkrishna'
jobs:
github-create-and-add-labels-all-repos-using-python:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v4
- name: set up python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: package installations
run: |
pip install poetry
poetry install
- name: execute python program
env:
GH_TOKEN: ${{ secrets.DEVWITHKRISHNA_PERSONAL_ACCESS_TOKEN }}
ORGANIZATION: 'devwithkrishna'
run: |
poetry run python3 create_new_labels.py
- name: Completed
run: |
echo "program completed successfully"