Skip to content

Commit

Permalink
test gjør det nye repoet public
Browse files Browse the repository at this point in the history
  • Loading branch information
augustdahl committed Mar 7, 2024
1 parent ed00859 commit 800cc00
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/create-and-clone-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ jobs:
create_and_clone_repo:
runs-on: ubuntu-latest
steps:
# - name: Create empty repo
# uses: actions/github-script@v7
# with:
# github-token: ${{ env.GITHUB_TOKEN }}
# script: |
# const repoName = '${{ env.REPO_NAME }}';
# const response = await github.request('POST /orgs/{org}/repos', {
# org: 'kartverket',
# name: '${{ env.REPO_NAME }}',
# description: 'This is your first repository',
# visibility: 'internal',
# headers: {
# 'X-GitHub-Api-Version': '2022-11-28'
# }
# });
# console.log(`Response for creating repo ${repoName}:`, response);
- name: Create empty repo
uses: actions/github-script@v7
with:
github-token: ${{ env.GITHUB_TOKEN }}
script: |
const repoName = '${{ env.REPO_NAME }}';
const response = await github.request('POST /orgs/{org}/repos', {
org: 'kartverket',
name: '${{ env.REPO_NAME }}',
description: 'This is your first repository',
visibility: 'public',
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
});
console.log(`Response for creating repo ${repoName}:`, response);
- name: Checkout the reference repository
uses: actions/checkout@v4
with:
repository: kartverket/dask-monorepo-reference-setup
path: 'cloned-repo'
path: ${{ env.REPO_NAME }}

- name: Initialize new repository and push
run: |
Expand Down

0 comments on commit 800cc00

Please sign in to comment.