diff --git a/.github/workflows/portCreateRepo.yaml b/.github/workflows/portCreateRepo.yaml index 6ddbddd..5795cf3 100644 --- a/.github/workflows/portCreateRepo.yaml +++ b/.github/workflows/portCreateRepo.yaml @@ -11,13 +11,28 @@ on: description: "Port's payload, including details for who triggered the action and general context (blueprint, run id, etc...)" type: string jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - id: echo-deploy - run: echo ${{ inputs.name }} \ - sleep 2 \ - echo "another line" + + create-repository: + runs-on: ubuntu-latest + name: Creating Organization Repository + steps: + - name: another + uses: octobay/create-repository-action@v1 + with: + name: '${{ inputs.name }}' + org: 'hadar-co' + access-token: 'portAction' + private-repo: true + initalize-repo: true + - name: Use Node.js + uses: actions/setup-node@v2 + - name: Creating GitHub Organization Repository + uses: repo-ctrl/create-repo-action@main + id: create-repo + with: + repo-name: '${{ inputs.name }}' + org-admin-token: '${{ secrets.ORG_ADMIN_TOKEN }}' + - name: Log URL to the repo + run: echo "The new repo is ${{ steps.create-repo.outputs.repo-url }}"