Skip to content

tractus-ndirouter created by josephdadams #13

tractus-ndirouter created by josephdadams

tractus-ndirouter created by josephdadams #13

Workflow file for this run

name: Create Module Repo
run-name: ${{ github.event.inputs.repo-name }} created by ${{ github.actor }}
on:
workflow_dispatch:
inputs:
repo-name:
description: 'Name of the repository to be created (companion-module- will be prepended to the name)'
required: true
default: ''
collaborators:
description: 'Comma separated list of GitHub users to be added as collaborators'
required: true
default: ''
jobs:
create-repository:
runs-on: ubuntu-latest
name: Create Organization Repository
steps:
- name: Use Node.js
uses: actions/setup-node@v4
- name: 'Creating GitHub Organization Repository: companion-module-${{ github.event.inputs.repo-name }}'
uses: repo-ctrl/create-repo-action@main
id: create-repo
with:
repo-name: 'companion-module-${{ github.event.inputs.repo-name }}'
org-admin-token: '${{ secrets.CREATE_REPO_TOKEN }}'
- name: Log URL to the repo
run: echo "The new repo URL is ${{ steps.create-repo.outputs.repo-url }}"
- name: Add Collaborators
id: manager-collaborators-action
uses: gateixeira/manage-collaborators-action@v1.0.1
with:
token: ${{ secrets.CREATE_REPO_TOKEN }}
repositories: bitfocus/companion-module-${{ github.event.inputs.repo-name }}
users: ${{ github.event.inputs.collaborators }}
role: push
action: add