Skip to content

Commit

Permalink
Merge pull request #79 from klarna/allow-skipping-set-public-true
Browse files Browse the repository at this point in the history
Allow skipping API calls for setting repos public
  • Loading branch information
jesperes authored Sep 12, 2024
2 parents e225a38 + 3a74206 commit d7d8dc7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: rebar3 cover
- name: Produce Documentation
if: matrix.otp-version == '25'
run: rebar3 edoc
- name: Publish Documentation
uses: actions/upload-artifact@v1
if: matrix.otp-version == '25'
uses: actions/upload-artifact@v4
with:
name: edoc
path: doc
path: "doc"
8 changes: 7 additions & 1 deletion test/bec_proper_gen.erl
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,13 @@ config_keys() ->
config_value('project') -> bec_test_utils:bitbucket_project_key();
config_value('repo') -> bec_test_utils:bitbucket_repo_slug();
config_value('default-branch') -> branch_id();
config_value('public') -> bool();
config_value('public') ->
case os:getenv("BEC_SKIP_PUBLIC") of
Value when is_list(Value) ->
[];
false ->
bool()
end;
config_value('users') -> ss_permission_users();
config_value('groups') -> ss_permission_groups();
config_value('branch-restrictions') -> ss_branch_restrictions();
Expand Down

0 comments on commit d7d8dc7

Please sign in to comment.