Here's a step-by-step guide for migrating this workflow to the CityOfLosAngeles organization, formatted for a README.md file:
Follow these steps to set up the workflow in the organization:
- Navigate to the
.github/workflows
directory in the CityOfLosAngeles/oof-latax-ci-cd repository - Create a new file named
create-develop-branches.yml
- Copy the entire workflow code from the test repository into this file
- Commit the changes
- Open the
create-develop-branches.yml
file - Locate the
organization
input parameter (around line 13-17) - Change the default value from:
to:
default: 'vishnu-parandhaman'
default: 'CityOfLosAngeles'
- Commit the changes
- Log in to GitHub with an account that has admin access to the CityOfLosAngeles organization
- Go to your GitHub account settings (click your profile picture and select Settings)
- Navigate to "Developer settings" → "Personal access tokens" → "Tokens (classic)"
- Click "Generate new token"
- Give it a descriptive name like "Repository Management for oof-latax-ci-cd"
- Select the following scopes:
repo
(Full control of private repositories)admin:org
(if you need to manage organization settings)
- Click "Generate token"
- IMPORTANT: Copy the generated token immediately - you won't be able to see it again
- Navigate to the CityOfLosAngeles/oof-latax-ci-cd repository
- Go to "Settings" → "Secrets and variables" → "Actions"
- Click "New repository secret"
- Name:
PAT_TOKEN
- Value: Paste the token you copied in step 3
- Click "Add secret"
- Go to the "Actions" tab of the repository
- Select the "Create Develop Branches" workflow from the list
- Click "Run workflow"
- Enter a comma-separated list of repositories to process
- Verify the organization is set to "CityOfLosAngeles"
- Click "Run workflow"
The workflow will process each repository in the list, creating a develop branch for those that don't already have one and skipping empty repositories.