Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
petrzpav committed Dec 7, 2023
1 parent c909e8f commit 54ab005
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions distribute
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,9 @@ process_users() {
status_empty_code=$?
project_id="$(get_project_id "${user_project_ns}")" \
|| continue
<<<<<<< HEAD
create_project_submit_token
update_default_branch "${user_cache_folder}" \
|| continue
=======
create_project_submit_token
>>>>>>> prod
user_id="$(get_user_id)"
add_member
[[ "$status_empty_code" == 0 ]] \
Expand Down
3 changes: 0 additions & 3 deletions gitlab_api
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,10 @@ fork_project() {
create_project_submit_token() {
local token
local output
<<<<<<< HEAD
=======
# remove current access token and variable regardless of existence
gitlab_api "api/v4/projects/${project_id}/access_tokens/ACADEMY_SUBMIT_TOKEN" '-' > /dev/null 2>&1
gitlab_api "api/v4/projects/${project_id}/variables/ACADEMY_SUBMIT_TOKEN" '-' > /dev/null 2>&1
# create new access token and variable
>>>>>>> prod
output="$(gitlab_api "api/v4/projects/${project_id}/access_tokens" "{ \"name\":\"ACADEMY_SUBMIT_TOKEN\", \"scopes\":[\"write_repository\"], \"access_level\": 40, \"expires_at\": \"$(date +%Y-%m-%d -d "+ 356 day")\" }")" \
|| return 1
token="$(jq -r .token <<< "${output}")"
Expand Down

0 comments on commit 54ab005

Please sign in to comment.