Skip to content

Commit

Permalink
Add submitted to repo collaborators
Browse files Browse the repository at this point in the history
  • Loading branch information
hvidy committed Feb 14, 2024
1 parent 20efaca commit 80959a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/approve-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.DAN_PAT }}
OWNER: ModelAtlasOfTheEarth
SUBMITTER: ${{ github.event.issue.user }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
TEMPLATE: ModelAtlasOfTheEarth/mate_model_template
FLAGS: --public
run: |
REPO_NAME=$(python3 .github/scripts/generate_identifier.py)
gh repo create ${OWNER}/${REPO_NAME} --template $TEMPLATE $FLAGS
gh api --method=PUT "repos/${OWNER}/${REPO_NAME}/collaborators/${SUBMITTER}" -f permission=admin
echo "repo_name=${REPO_NAME}" >> $GITHUB_OUTPUT
# parse metadata and write files to repo
Expand Down

0 comments on commit 80959a2

Please sign in to comment.